-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.61 KB
/
ci.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
name: "ci"
on: pull_request
jobs:
test-bootstrap-zsh:
name: zsh-integration
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Build docker image with bootstrap script
run: docker build -t bootstrap-script-test-zsh -f ./bootstrap-test.Dockerfile . --build-arg SHELL_VAR=zsh
- name: Run bats-zsh test via devbox
run: docker run bootstrap-script-test-zsh bats test/bootstrap-agnostic.bats test/bootstrap-zsh.bats
test-bootstrap-bash:
name: bash-integration
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Build docker image with bootstrap script
run: docker build -t bootstrap-script-test-bash -f ./bootstrap-test.Dockerfile . --build-arg SHELL_VAR=bash
- name: Run bats-bash test via devbox
run: docker run bootstrap-script-test-bash bats test/bootstrap-agnostic.bats test/bootstrap-bash.bats
test-bootstrap-fish:
name: fish-integration
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Build docker image with bootstrap script
run: docker build -t bootstrap-script-test-fish -f ./bootstrap-test.Dockerfile . --build-arg SHELL_VAR=fish
- name: Run bats-fish test via devbox
run: docker run bootstrap-script-test-fish bats test/bootstrap-agnostic.bats test/bootstrap-fish.bats
check-linting-and-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jetpack-io/[email protected]
- run: devbox run lint