24 lines
484 B
YAML
24 lines
484 B
YAML
name: Merge to Main
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
build:
|
|
# The type of runner that the job will run on
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: [ 18 ]
|
|
|
|
name: Node ${{ matrix.node }} sample
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run linting rules and tests
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- run: npm ci
|
|
- run: npm run lint
|
|
- run: npm run test
|