Skip to content

Fix github action version by hash #478

Fix github action version by hash

Fix github action version by hash #478

Workflow file for this run

name: Test
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check_test_execution_conditions:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: xt0rted/block-autosquash-commits-action@79880c36b4811fe549cfffe20233df88876024e7 # v2.2.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
needs:
- check_test_execution_conditions
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "20.16.0"
- run: yarn install
- run: yarn run lint
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
node:
- "20.0.0"
- "20.16.0"
- "22.14.0"
needs:
- check_test_execution_conditions
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node }}
- run: yarn install
- run: yarn run test
build:
runs-on: ubuntu-latest
timeout-minutes: 5
needs:
- check_test_execution_conditions
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "20.16.0"
- run: yarn install
- run: yarn run build
env:
NODE_ENV: "production"