Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Run build & test scripts on GitHub Actions #394

Merged
merged 6 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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: setup git
if: matrix.os == 'windows-latest'
run: |
git config core.symlinks true
git reset --hard

legobeat marked this conversation as resolved.
Show resolved Hide resolved
- 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

- uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
with:
file: ./coverage/coverage.lcov
name: codecov-umbrella
fail_ci_if_error: false
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