-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1d4e1d
commit 3a3e236
Showing
4 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Cos Pull Request Check | ||
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 ./... | ||
File renamed without changes.
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
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