Specify exact version for GH actions to avoid accidental breakage (#69)

To avoid accidental breakage when an action is implicitly upgraded,
let’s fixate the action versions and let dependabot do it’s thing.
Therefore when an action upgrade breaks the build it becomes visible in
the dependabot PR.
This commit is contained in:
Lars Strojny 2022-12-18 21:17:18 +01:00 committed by GitHub
parent 78d45e770e
commit c4ce1531cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,16 +20,16 @@ jobs:
name: nodejs ${{ matrix.node-version }} (${{ matrix.lint && 'lint → ' || '' }}${{ matrix.tests && 'test → ' || '' }}build) name: nodejs ${{ matrix.node-version }} (${{ matrix.lint && 'lint → ' || '' }}${{ matrix.tests && 'test → ' || '' }}build)
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.2.0
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3.5.0
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Cache node modules - name: Cache node modules
id: cache-npm id: cache-npm
uses: actions/cache@v3 uses: actions/cache@v3.0.11
env: env:
cache-name: cache-node-modules cache-name: cache-node-modules
with: with:
@ -38,7 +38,7 @@ jobs:
- name: Cache eslint - name: Cache eslint
id: cache-eslint id: cache-eslint
uses: actions/cache@v3 uses: actions/cache@v3.0.11
env: env:
cache-name: cache-eslint cache-name: cache-eslint
with: with:
@ -47,7 +47,7 @@ jobs:
- name: Cache TypeScript - name: Cache TypeScript
id: cache-typescript id: cache-typescript
uses: actions/cache@v3 uses: actions/cache@v3.0.11
env: env:
cache-name: cache-typescript cache-name: cache-typescript
with: with:
@ -56,7 +56,7 @@ jobs:
- name: Cache prettier - name: Cache prettier
id: cache-prettier id: cache-prettier
uses: actions/cache@v3 uses: actions/cache@v3.0.11
env: env:
cache-name: cache-prettier cache-name: cache-prettier
with: with:
@ -76,7 +76,7 @@ jobs:
if: ${{ matrix.tests }} if: ${{ matrix.tests }}
- name: Upload code coverage - name: Upload code coverage
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3.1.1
with: with:
name: code-coverage name: code-coverage
path: coverage/lcov.info path: coverage/lcov.info