Switch from Travis to GH Actions for CI #1
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: any-proxy Build and Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.x' | |
- name: Run version script | |
run: | | |
chmod +x ./make.bash | |
./make.bash version | |
- name: Run tests | |
run: go test -v ./... | |
- name: Run build failed script | |
if: failure() | |
run: | | |
./make.bash build_failed | |