Skip to content

Commit

Permalink
ci: use node 20 and setup caching
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Oct 31, 2023
1 parent c5c9765 commit 59571b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@

name: Lint
on:
push:
branches:
- main
pull_request:
paths:
- 'Makefile'
- '**.jsx?'
- '**.tsx?'
- '**/.babelrc'
- '**/.eslint*'
- '**/.prettierrc*'
- '**/package.json'
- '**/github/workflows/lint.yml'
- "Makefile"
- "**.jsx?"
- "**.tsx?"
- "**/.babelrc"
- "**/.eslint*"
- "**/.prettierrc*"
- "**/package.json"
- "**/github/workflows/lint.yml"
jobs:
eslint:
runs-on: ubuntu-latest
container:
image: node:16-alpine
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- run: npm i
- run: npm run lint:eslint
13 changes: 9 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ name: Test
jobs:
test:
runs-on: ubuntu-latest
container:
image: node:16-alpine
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- run: npm i
- run: npm run test:ci

Expand All @@ -32,11 +34,14 @@ jobs:
with:
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

production-build:
runs-on: ubuntu-latest
container:
image: node:16-alpine
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- run: npm i
- run: npm run build

0 comments on commit 59571b8

Please sign in to comment.