Skip to content

Commit

Permalink
Merge pull request #394 from legobeat/ci-gha-test
Browse files Browse the repository at this point in the history
ci: Run build & test scripts on GitHub Actions
  • Loading branch information
PabloLION committed Oct 24, 2023
2 parents 765f25c + 503855b commit 7ca8887
Show file tree
Hide file tree
Showing 3 changed files with 11,493 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci

on: [pull_request]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x, 16.x, 18.x, 20.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: ${{ matrix.os }} / Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: npm install, build, and test
run: |
sudo apt install -y --no-install-recommends graphviz
npm i -g npm@9
npm ci
npm run test
npm run debug
npm run generate
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
*.sublime-project
*.sublime-workspace
.idea
package-lock.json
Loading

0 comments on commit 7ca8887

Please sign in to comment.