Handle plan preview workflow's error and exit with error status code #254
Workflow file for this run
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: test | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- tool/** | |
pull_request: | |
branches: | |
- master | |
paths: | |
- tool/** | |
env: | |
GO_VERSION: 1.20.5 | |
NODE_VERSION: 16.13.0 | |
jobs: | |
tool: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
cache: true | |
- name: Run unit tests for actions-plan-preview | |
working-directory: tool/actions-plan-preview | |
run: go test ./... | |
- name: Run unit tests for actions-gh-release | |
working-directory: tool/actions-gh-release | |
run: go test ./... |