Skip to content

Commit b52df5c

Browse files
authored
Merge pull request #5 from slidoapp/dependencies
2 parents 9ee2d73 + 8dbb517 commit b52df5c

5 files changed

Lines changed: 183 additions & 72 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: npm ci
3131
run: npm ci
3232

33+
- name: npm audit production
34+
run: npm audit --omit=dev
35+
3336
- name: npm run build
3437
run: npm run build
3538

.github/workflows/tests.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
qrcode-cli:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node: [ 18, 20, 22 ]
14+
fail-fast: false
15+
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v4
19+
20+
- name: setup node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node }}
24+
25+
- name: install canvas dependencies
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
29+
30+
- name: npm ci
31+
run: npm ci
32+
33+
- name: npm link
34+
run: npm link
35+
36+
- name: qrcode terminal output
37+
run: qrcode "Lorem ipsum."
38+
39+
- name: qrcode PNG output
40+
run: qrcode --output qrcode.png "Lorem ipsum."
41+
42+
- name: upload artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: qrcode-cli_tests_nodejs_${{ matrix.node }}
46+
path: 'qrcode.png'
47+
compression-level: 0

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

0 commit comments

Comments
 (0)