Skip to content

Commit

Permalink
Merge pull request #5 from slidoapp/dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso authored Oct 12, 2024
2 parents 9ee2d73 + 8dbb517 commit b52df5c
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 72 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: npm ci
run: npm ci

- name: npm audit production
run: npm audit --omit=dev

- name: npm run build
run: npm run build

Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: tests

on:
push:
pull_request:

jobs:
qrcode-cli:
runs-on: ubuntu-latest

strategy:
matrix:
node: [ 18, 20, 22 ]
fail-fast: false

steps:
- name: checkout
uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: install canvas dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- name: npm ci
run: npm ci

- name: npm link
run: npm link

- name: qrcode terminal output
run: qrcode "Lorem ipsum."

- name: qrcode PNG output
run: qrcode --output qrcode.png "Lorem ipsum."

- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: qrcode-cli_tests_nodejs_${{ matrix.node }}
path: 'qrcode.png'
compression-level: 0
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
Loading

0 comments on commit b52df5c

Please sign in to comment.