mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-02-12 05:42:07 +00:00
29 lines
No EOL
510 B
YAML
29 lines
No EOL
510 B
YAML
name: Build and Lint
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [21.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: yarn
|
|
|
|
- name: Build
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
|
|
- name: Lint
|
|
run: |
|
|
npm run lint |