[UPDT]: dummy api and flutter structure updated #2
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: Validate Pull Request | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
GO_VERSION_FILE: 'go.mod' | |
jobs: | |
run-lint: | |
name: Run Linter | |
runs-on: [main] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: ${{ env.GO_VERSION_FILE }} | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest | |
run-tests: | |
name: Run Tests | |
needs: [run-lint] | |
runs-on: [main] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: ${{ env.GO_VERSION_FILE }} | |
cache: false | |
- name: Set up gotestfmt | |
uses: gotesttools/gotestfmt-action@v2 | |
- name: Run Tests | |
run: | | |
set -euo pipefail | |
go test -json -v ./... 2>&1 | tee //tmp/gotest.log | gotestfmt |