Skip to content

Cos Pull Request Check #1

Cos Pull Request Check

Cos Pull Request Check #1

Workflow file for this run

name: ${{ env.TRIGGER_PATH }} Pull Request Check

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

View workflow run for this annotation

GitHub Actions / ${{ env.TRIGGER_PATH }} Pull Request Check

Invalid workflow file

The workflow is not valid. .github/workflows/cos.yml (Line: 1, Col: 7): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TRIGGER_PATH .github/workflows/cos.yml (Line: 7, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TRIGGER_PATH
env:
TRIGGER_PATH: cos
on:
pull_request:
paths:
- '${{ 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 ./...