Skip to content

build-test

build-test #1132

Workflow file for this run

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
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: GitHub Action self-test
id: self_test
uses: ./
with:
package_id: 'TestZipPackage'
version: '1.0.0'
output_folder: './packaging'
base_path: reports
files: |
**/*
- uses: actions/upload-artifact@v4
with:
name: TestZipPackage.1.0.0
path: ${{ steps.self_test.outputs.package_file_path }}