feat: add network services support with VPCs, subnets, security groups, and rules #94
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: Unit Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: ${{ vars.RUNNER_RUNS_ON }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 #v5.3.0 | |
with: | |
go-version: '1.23' | |
cache: true | |
cache-dependency-path: | | |
**/go.mod | |
**/go.sum | |
- name: Install dependencies | |
run: go mod download | |
- name: Run Unit Tests | |
run: | | |
go test -v -race -coverprofile=coverage.out ./... | |
- name: Upload Coverage Report to SonarCloud | |
uses: sonarsource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 #v4.2.1 | |
with: | |
args: > | |
-Dsonar.token=${{ secrets.MAGALUBOT_SONAR_TOKEN }} |