build-test #2336
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'build-test' | |
on: | |
push: | |
paths-ignore: | |
- '**/*.md' | |
schedule: | |
# Daily 5am australian/brisbane time (7pm UTC) | |
- cron: '0 19 * * *' | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
# https://github.com/dorny/test-reporter/issues/168 | |
permissions: | |
statuses: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Install package dependencies | |
run: npm install | |
- name: Compile and run tests | |
run: npm run all | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: JEST Tests | |
path: 'reports/jest-*.xml' | |
reporter: jest-junit | |
- name: Install Octopus CLI | |
uses: ./ | |
with: | |
version: latest | |
- run: octopus version |