Skip to content

Cos Pull Request Check #2

Cos Pull Request Check

Cos Pull Request Check #2

Workflow file for this run

name: Cos Pull Request Check
env:
TRIGGER_PATH: cos
on:
pull_request:
paths:
- '${{ env.TRIGGER_PATH }}/**'

Check failure on line 7 in .github/workflows/cos.yml

View workflow run for this annotation

GitHub Actions / Cos Pull Request Check

Invalid workflow file

The workflow is not valid. .github/workflows/cos.yml (Line: 7, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TRIGGER_PATH .github/workflows/cos.yml (Line: 10, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TRIGGER_PATH
push:
paths:
- '${{ env.TRIGGER_PATH }}/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: |
cd ${{ env.TRIGGER_PATH }}
go build -v ./...
- name: Test
run: |
cd ${{ env.TRIGGER_PATH }}
go test -v -gcflags=all=-l ./...