forked from YubicoLabs/action-conftest
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 841 Bytes
/
pull_request.yaml
File metadata and controls
37 lines (31 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Pull Request
on: ["pull_request"]
jobs:
go-tests:
name: Go Tests
runs-on: ubuntu-latest
steps:
- name: setup go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
- name: checkout
uses: actions/checkout@v3
- name: unit test
run: go test -v ./...
- name: test build
run: go build -o build/action-conftest
test-run-action:
name: Test the Action
needs: go-tests
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: run action
uses: './'
with:
files: '.github/test/resources'
policy: '.github/test/policy/always_warn.rego'
gh-token: ${{ secrets.GITHUB_TOKEN }}
gh-comment-url: ${{ github.event.pull_request.comments_url }}