fix: ci job for main
This commit is contained in:
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
@@ -3,21 +3,21 @@ name: Merge to Main
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node: [ 18 ]
|
||||||
|
|
||||||
build:
|
name: Node ${{ matrix.node }} sample
|
||||||
# The type of runner that the job will run on
|
steps:
|
||||||
runs-on: ubuntu-latest
|
- uses: actions/checkout@v3
|
||||||
strategy:
|
- name: Run linting rules and tests
|
||||||
matrix:
|
uses: actions/setup-node@v3
|
||||||
node: [ 18 ]
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
name: Node ${{ matrix.node }} sample
|
- run: npm ci
|
||||||
steps:
|
- run: npm run lint
|
||||||
- uses: actions/checkout@v3
|
- run: npm run test
|
||||||
- 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user