Skip to content

ci: pin actions to commit-hash (#12) #53

ci: pin actions to commit-hash (#12)

ci: pin actions to commit-hash (#12) #53

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- 'releases/*'
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: |
npm i
- run: |
npm run lint
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: |
npm i
- run: |
npm run test
integrity:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
check-latest: true
node-version: lts/*
- name: Build action
run: |
npm i &&
npm run build
- name: Repository Integrity Check
run: |
git diff --quiet dist
automerge:
name: Automerge Dependabot PRs
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'dependabot[bot]'
needs:
- lint
- test
- integrity
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@d37100b180dfd816bb1d7e4fbb544b3c734957a1 # v3.9.0