-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (50 loc) · 1.84 KB
/
tests.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Tests
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-12 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Show make version
run: make --version
- name: Make sure we have docker binary (even if faked)
run: command -v docker > /dev/null 2>&1 || (touch /usr/local/bin/docker && chmod +x /usr/local/bin/docker)
- name: Show make debug
run: cd make && make debug
- name: Run tests
run: tests/tests.sh
- name: Create file to be removed
run: mkdir -p debug/tools/make && touch debug/tools/make/druid-cli.mk
# Debug mode downloads files from this branch to ./debug folder
- name: Run updater
run: ./update.sh --debug --branch ${GITHUB_REF##*/}
- name: Test that downloaded files exist in debug folder
run: |
test -f debug/tools/make/ansible.mk
test -f debug/tools/make/lagoon.mk
test -f debug/tools/make/common.mk
test -f debug/tools/make/composer.mk
test -f debug/tools/make/docker.mk
test -f debug/tools/make/drupal.mk
test -f debug/tools/make/include.mk
test -f debug/tools/make/javascript.mk
test -f debug/tools/make/Makefile
test -f debug/tools/make/qa.mk
test -f debug/tools/make/symfony.mk
test -f debug/tools/make/utils.mk
- name: Test that removed file does not exist in debug folder
run: |
test ! -f debug/tools/make/druid-cli.mk
test ! -f debug/tools/make/wordpress.mk
- name: Diff main Makefile
run: diff debug/Makefile make/Makefile.project.dist