Skip to content

Commit

Permalink
Setup github actions (#43)
Browse files Browse the repository at this point in the history
* Create main.yml

* Downgrade check-dts
  • Loading branch information
blackbeam authored Sep 28, 2021
1 parent c410ea7 commit ec9cb64
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 10
- 12
- 14
- 16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '${{ matrix.node }}'
- run: sudo apt-get update -y
- run: sudo apt-get install -y pkg-config libpoppler-dev libpoppler-cpp-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-qt5-dev poppler-data poppler-utils
- run: npm install .
- run: npm test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"devDependencies": {
"@types/node": "^16.10.1",
"check-dts": "^0.5.6",
"check-dts": "^0.4.4",
"mocha": "^9.1.2"
},
"optionalDependencies": {},
Expand All @@ -36,4 +36,4 @@
"slow": "250",
"v8-expose-gc": true
}
}
}

0 comments on commit ec9cb64

Please sign in to comment.