-
Notifications
You must be signed in to change notification settings - Fork 50
47 lines (44 loc) · 1.14 KB
/
build.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
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: template setup test
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Template Setup
run: |
git config user.name "Foo Bearer"
./setup.bash \
"asdf-foo" \
"foo --help" \
"asdf-community" \
"ASDF Community" \
"https://github.com/asdf-vm/asdf" \
"https://asdf-vm.com" \
"Apache-2.0" \
"yes"
- name: Check setup result
run: |
set -xe
ls -la .
git log
test ! -d template/
grep "Apache" LICENSE
test "main" = "$(git rev-parse --abbrev-ref HEAD)"
! git grep -F -e "<YOUR TOOL>" \
--or -e "<TOOL HOMEPAGE>" \
--or -e "<TOOL REPO>" \
--or -e "<TOOL CHECK>" \
--or -e "<YOUR NAME>" \
--or -e"<YOUR GITHUB USERNAME>"