Skip to content

Commit

Permalink
Merge pull request #1093 from Fdawgs/ci/github-actions
Browse files Browse the repository at this point in the history
ci: update github actions
  • Loading branch information
spencermountain authored Mar 2, 2024
2 parents 094d378 + e0305bc commit 6239b86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [pull_request]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
permissions:
contents: read

strategy:
matrix:
Expand All @@ -13,13 +15,14 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: package-lock.json

- name: install
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ on:
jobs:
getCoverage:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-node@v4
with:
node-version: '16'
cache: npm
cache-dependency-path: package-lock.json

- run: npm ci
- run: npm i -g c8 codecov
Expand Down

0 comments on commit 6239b86

Please sign in to comment.