Added TaskImage for AWS and an ability to use asterisk in image #143
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
CodeQL: | |
name: CodeQL validation | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: go | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
OpenAPI: | |
runs-on: ubuntu-latest | |
name: OpenAPI validation | |
# Service containers to run with `runner-job` | |
services: | |
# Label used to access the service container | |
swagger-editor: | |
# Docker Hub image | |
image: swaggerapi/swagger-editor | |
ports: | |
# Maps port 8080 on service container to the host 80 | |
- 80:8080 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Validate OpenAPI definition | |
uses: swaggerexpert/swagger-editor-validate@452076dc45d5d1f09dd55440c9bffc372de4da25 # Jul 29, 2024 | |
with: | |
swagger-editor-url: http://localhost/ | |
definition-file: docs/openapi.yaml | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # To get all the tags for versioning | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Build | |
run: RELEASE=1 ./build.sh | |
- name: Upload binaries | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binaries | |
path: aquarium-fish*.tar.xz | |
- name: Test | |
run: | | |
go install github.com/jstemmer/go-junit-report/v2@85bf471 # Oct 18, 2023 | |
name="$(ls aquarium-fish-*.linux_amd64)" | |
FISH_PATH="$PWD/$name" go test -v -failfast -parallel 4 -count=1 ./tests/... 2>&1 | go-junit-report -iocopy -set-exit-code -out report.xml | |
- name: Test Summary | |
uses: test-summary/action@v2 | |
if: always() | |
with: | |
paths: report.xml |