2024-04-08 04:43:30 -05:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-04-17 09:05:56 -05:00
|
|
|
branches: [main, dev]
|
2024-04-08 04:43:30 -05:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build ${{ matrix.node }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node: ['20.x']
|
|
|
|
steps:
|
2024-04-19 06:21:32 -05:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
2024-04-08 04:43:30 -05:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
- uses: bahmutov/npm-install@v1
|
|
|
|
- run: npm run build
|
|
|
|
lint:
|
|
|
|
name: Lint ${{ matrix.node }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node: ['20.x']
|
|
|
|
steps:
|
2024-04-19 06:21:32 -05:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
2024-04-08 04:43:30 -05:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
- uses: bahmutov/npm-install@v1
|
|
|
|
- run: npm run lint
|