Skip to content

Commit

Permalink
rework github pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Mar 25, 2024
1 parent d8f2441 commit 76c3620
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint & Build

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js from .nvmrc file
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run fmt:check
- run: npm run lint
- run: npm run build:all
26 changes: 14 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Test
on: [pull_request]
name: Run Unit Tests

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run test:all
- uses: actions/checkout@v3
- name: Use Node.js from .nvmrc file
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*

0 comments on commit 76c3620

Please sign in to comment.