-
Notifications
You must be signed in to change notification settings - Fork 18
86 lines (75 loc) · 2.18 KB
/
ci.cli.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
on:
pull_request:
workflow_call:
env:
GITHUB_TOKEN: ${{github.token}}
PKGX_PANTRY_PATH: ${{github.workspace}}
jobs:
integration-tests:
name: ${{matrix.pkg}} (${{matrix.platform.tag}})
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
img: debian:buster-slim
tag: linux
- os: macos-latest
tag: mac
pkg:
- stark.com/foo
- toolchain.com
- pyapp.com/pip
- pyapp.com/poetry
- stark.com/foo@1.2.3
- git-clone.com
- pc-cmake.com
- fix-machos.com
- version-transformer.com
runs-on: ${{ matrix.platform.os }}
container: ${{ matrix.platform.img }}
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/setup@v2
- uses: denoland/setup-deno@v1
if: runner.os == 'macos'
- run: pkgx install deno
if: runner.os == 'linux'
- name: precache # makes it easier to read the real output
run: deno cache test/test.ts build/build.ts
- run: bin/bk build ${{matrix.pkg}}
- run: bin/bk test ${{matrix.pkg}}
- run: bin/bk audit ${{matrix.pkg}}
local-edit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/setup@v2
- uses: ./.github/modify-pantry
- run: test $(bin/bk status) = stark.com/foo
- run: bin/bk build
- run: bin/bk test
- run: test $(pkgx +stark.com/foo -- stark) = not_much_u
- run: bin/bk audit
# check build can run twice, see https://github.com/pkgxdev/brewkit/issues/303
- run: bin/bk build
unit-tests:
runs-on: ubuntu-latest
env:
PKGX_PANTRY_PATH: null
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/dev@v0
- run: deno test --allow-env --allow-net --ignore=.data
working-directory: lib
unavailable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/setup@v2
- run: pkgx --sync # FIXME PKGX_PANTRY_PATH causes auto sync to fail
- name: build
run: |
set +e
bin/bk build unavailable.com
test $? -eq 2