Skip to content

Add Github action for the common logging library #4

Add Github action for the common logging library

Add Github action for the common logging library #4

Workflow file for this run

name: Run unit tests
on:
push:
branches: [ "main" ]
paths:
- 'common/**'
pull_request:
paths:
- 'common/**'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
/home/runner/work/common/bin
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up go environment
uses: actions/setup-go@v4
with:
go-version: 1.21.5
- name: Run unit tests
with:
working-directory: 'common'
run: make test

Check failure on line 38 in .github/workflows/test-common.yaml

View workflow run for this annotation

GitHub Actions / Run unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/test-common.yaml (Line: 38, Col: 9): Unexpected value 'run' .github/workflows/test-common.yaml (Line: 35, Col: 9): Required property is missing: uses