Skip to content

[TSK-15] - Bug Fixes and Enhancements #59

[TSK-15] - Bug Fixes and Enhancements

[TSK-15] - Bug Fixes and Enhancements #59

Workflow file for this run

name: Tests
on: [pull_request]
jobs:
test:
name: Run Go tests
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.23.2'
# Cache Go modules
- name: Cache Go Modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# Test Build aw-sync-agent for Linux
- name: Test build aw-sync-agent
working-directory: aw-sync-agent
run: |
GOOS=linux GOARCH=amd64 go build
# Run Go tests
- name: Run Go tests
working-directory: aw-sync-agent
run: go test ./tests/