abapGit/.github/workflows/test.yml
Lars Hvam 590e7eb175
update to node16 + ignore scripts (#5117)
* update to node16 + ignore scripts

* latest
2021-11-09 16:28:56 +01:00

47 lines
1.2 KiB
YAML

name: test
on:
push:
pull_request:
jobs:
unit:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: npm run unit
run: |
npm install
npm run unit
- name: npm run coverage
run: |
npm run coverage
- name: Update coverage.abapgit.org
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main' && github.repository == 'abapGit/abapGit'
with:
deploy_key: ${{ secrets.COVERAGE_DEPLOY_KEY }}
external_repository: abapGit/coverage.abapgit.org
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_branch: main
cname: coverage.abapgit.org
force_orphan: true
publish_dir: ./coverage
integration:
needs: unit
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: npm run integration
run: |
npm install
npm run integration