Skip to content

Commit

Permalink
ci: bring up
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 22, 2023
1 parent 8aee6b0 commit c3c3108
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Lint and Test
on:
push:
pull_request:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: lts
cache: npm
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
test:
strategy:
matrix:
node: [14.x, 16.x, 18.x, 20.x, latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm install
- run: npm test

0 comments on commit c3c3108

Please sign in to comment.