-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1001 Bytes
/
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
name: Dotfiles
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
jobs:
test-dotfiles--local:
runs-on: ubuntu-latest
env:
COMPOSE_FILE: test/docker-compose.yml
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build docker image of test environment
run: docker compose build local
- name: Run tests inside the docker container
run: docker compose up local
test-dotfiles--remote:
runs-on: ubuntu-latest
env:
COMPOSE_FILE: test/docker-compose.yml
RAW_CONTENT_URL:
"https://raw.githubusercontent.com\
/${{ github.repository }}\
/${{ github.head_ref || github.ref_name }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build docker image of test environment
run: docker compose build remote
- name: Run tests inside the docker container
run: docker compose up remote