Create lint_test_and_build.yml
Add a git workflow
This commit is contained in:
parent
c0f81a50ed
commit
6895b94279
1 changed files with 30 additions and 0 deletions
30
.github/workflows/lint_test_and_build.yml
vendored
Normal file
30
.github/workflows/lint_test_and_build.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: Lint, Test and Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [22.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
npm install
|
||||
npm run lint
|
||||
npm run test
|
||||
npm run build
|
||||
Loading…
Add table
Add a link
Reference in a new issue