-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (47 loc) · 1.36 KB
/
test.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: test
on:
# Trigger the workflow on push or pull request,
# but only for the master branch.
push:
branches:
- master
pull_request:
# Note: 'branches' and 'branches-ignore' are target PR branches
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
# "For a 'pull_request' event, only branches and tags on the base are evaluated."
branches:
- "*"
jobs:
test:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Homebrew install packages
run: |
set -x
bash -c 'echo $BASH_VERSION'
brew --version
brew --prefix
make --version
set +x
brew bundle
- name: Run lint checks
run: |
make lint
- name: Run tests
run: |
# Extend PATH to always use Coreutils supplied utilities first.
export PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/local/sbin:${PATH}"
declare -p PATH
# Print versions
set -x
unzip -v
wget --version
set +x
# Should be picked from `coreutils` package
set -x
which cp dirname mkdir mktemp mv realpath rm
set +x
#
make test