Watch payloads by default #43
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: Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
merge_group: | |
push: | |
branches: [main] | |
jobs: | |
test: | |
name: E2E test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22 | |
- name: Run playground | |
run: go run main.go --output /tmp/playground & > /tmp/playground.log 2>&1 | |
- name: Validate that blocks are created | |
run: go run main.go validate | |
- name: Move playground logs | |
if: ${{ failure() }} | |
run: mv /tmp/playground.log /tmp/playground/logs | |
- name: Archive playground logs | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: playground-logs | |
path: /tmp/playground/logs | |
retention-days: 5 | |
artifacts: | |
name: Artifacts | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22 | |
- name: Download and test artifacts | |
run: go run main.go download-artifacts --validate |