Skip to content

Commit

Permalink
More github workflow tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
stanlemon committed Oct 28, 2024
1 parent 8ee3deb commit ca7925f
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,30 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout 🛎️
uses: actions/checkout@v4 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

- name: Install modules
run: npm install
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-
${{ runner.OS }}-
- name: Lint
run: npm run lint
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Run tests
run: npm run test
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Run tests
run: npm run test

0 comments on commit ca7925f

Please sign in to comment.