-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 1.08 KB
/
pull-requests.yaml
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
38
39
40
41
42
43
44
name: Pull Request
on:
[pull_request]
jobs:
make-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Determine download URL for latest pack
id: pack-download-url
uses: actions/github-script@v2
with:
result-encoding: string
script: |
return github.repos.getReleaseByTag({
owner: "buildpacks",
repo: "pack",
tag: "v0.29.0"
}).then(result => {
return result.data.assets
.filter(a => a.name.includes("linux."))
.map(a => a.browser_download_url)[0];
})
- name: Install pack
run: |
curl -s -L -o pack.tgz ${{ steps.pack-download-url.outputs.result }}
tar -xvf pack.tgz
- name: Build
run: PACK_CMD="$(pwd)/pack" make
- name: Run tests
run: PACK_CMD="$(pwd)/pack" make test