Skip to content

Commit

Permalink
add lint and test action
Browse files Browse the repository at this point in the history
  • Loading branch information
amerharb committed Mar 11, 2024
1 parent 0554dc3 commit c5bcc13
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint and Test

on:
push:
branches: [ "main", "*/version/*" ]
pull_request:

jobs:
lint-test:
name: Lint & Test
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node-version: [ 20.x, 18.x ]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn workspaces foreach --all install --immutable
- run: yarn lint
- run: yarn build
- run: yarn test

0 comments on commit c5bcc13

Please sign in to comment.