Framework Unit Tests #54
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: Framework Unit Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
repository_dispatch: | |
types: rebuild | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * *' # runs every night | |
jobs: | |
framework: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.21.3' | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
token: ${{secrets.PAT}} # Personal Access Token, must be defined in the repo's secrets | |
- id: bash | |
run: | | |
source setprj.sh | |
$JTFRAME/bin/jtsim-funcs-test.sh | |
- id: go | |
run: | | |
source ./setprj.sh | |
cd $JTFRAME/src/jtframe | |
go test ./... | |
cd $JTFRAME/src/jtutil | |
go test ./... | |