Script docu comments update (#151) #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'CI' | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- main | |
- develop | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
node-version: | |
- '18' | |
platform: | |
- ubuntu-latest | |
name: Lint | |
runs-on: ${{ matrix.platform }} | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
cache-dependency-path: 'yarn.lock' | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run Yarn CI | |
run: yarn ci | |
- name: Run Security check | |
run: yarn npm audit |