Skip to content

Commit

Permalink
Merge pull request #8 from slidoapp/upgrade_tap_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso authored Oct 15, 2024
2 parents ad29898 + 466026f commit 1187659
Show file tree
Hide file tree
Showing 5 changed files with 7,322 additions and 5,894 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-14

strategy:
matrix:
Expand All @@ -24,8 +24,7 @@ jobs:

- 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
brew install --quiet pkg-config cairo pango libpng jpeg giflib librsvg pixman python-setuptools
- name: npm ci
run: npm ci
Expand All @@ -39,12 +38,32 @@ jobs:
- name: npm test
run: npm test

- name: npm run tap-junit-report
run: npm run tap-junit-report || true

- name: upload artifact
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: 'qrcode-tests-report-nodejs_${{ matrix.node }}'
path: 'test-results.xml'
compression-level: 0

- name: test report
uses: dorny/test-reporter@eaa763f6ffc21c7a37837f56cd5f9737f27fc6c8 # 1.8.0
if: success() || failure()
with:
name: 'qrcode-tests-nodejs_${{ matrix.node }}'
path: 'test-results.xml'
reporter: jest-junit

- name: npm pack
if: always()
run: npm pack

- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: qrcode_nodejs_${{ matrix.node }}
name: 'qrcode_nodejs_${{ matrix.node }}'
path: '*.tgz'
compression-level: 0
compression-level: 0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
coverage
.nyc_output
build
.tap/
Loading

0 comments on commit 1187659

Please sign in to comment.