Skip to content

Bump actions/checkout from 3 to 4 (#259) #253

Bump actions/checkout from 3 to 4 (#259)

Bump actions/checkout from 3 to 4 (#259) #253

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
jobs:
code-analysis:
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
language: [javascript, typescript]
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v2
- uses: github/codeql-action/analyze@v2
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm run audit
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci --ignore-scripts
- run: npm run lint:ci
test-unit:
needs: [audit, lint]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci --ignore-scripts
- run: npm run build
- run: npm run test:unit
test-e2e:
needs: test-unit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci --ignore-scripts
- run: npm run test:e2e
check:
if: always()
needs: [code-analysis, audit, lint, test-unit, test-e2e]
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}