-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.32 KB
/
self-test.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
45
46
47
48
49
50
51
52
53
name: Self test
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Default to bash
defaults:
run:
shell: bash -o errexit -o nounset -o pipefail -x {0}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
self-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
# Runs our tests
- name: Run valet self test
env:
VALET_CONFIG_ENABLE_COLORS: true
VALET_CONFIG_DISABLE_PROGRESS: true
run: |
bash --version
chmod +x valet
./valet self test -C
# Runs tests with bash 5
- name: Run valet self test on bash5
run: |
chmod +x valet
docker run --rm \
-v $PWD:/app \
-w /app \
-e VALET_CONFIG_ENABLE_COLORS=true \
noyacode/minideb-bash5.0 \
./valet self test -C