Skip to content

Commit 7523f46

Browse files
committed
Add CI
1 parent 5d11b15 commit 7523f46

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Main checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v7
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v7
21+
with:
22+
node-version-file: '.nvmrc'
23+
registry-url: 'https://registry.npmjs.org'
24+
- name: Install dependencies
25+
run: |
26+
sudo apt update
27+
sudo apt install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev pkg-config
28+
npm ci
29+
npm rebuild canvas
30+
- name: Test
31+
run: npm test

0 commit comments

Comments
 (0)