-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (38 loc) · 1.02 KB
/
lint-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
name: lint-test
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: shellcheck *.sh
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: drupal/Dockerfile
verbose: true
test:
needs: [lint]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: install mkcert (ubuntu or macos)
shell: bash
run: |-
ARCH="linux/amd64"
if [ "${{ matrix.os }}" = "macos-latest" ]; then
ARCH="darwin/arm64"
elif [ "${{ matrix.os }}" = "macos-13" ]; then
ARCH="darwin/amd64"
fi
curl -JLO "https://dl.filippo.io/mkcert/latest?for=$ARCH"
chmod +x mkcert-v*
cp mkcert-v* /usr/local/bin/mkcert
- name: generate-certs
shell: bash
run: ./generate-certs.sh
- name: generate-secrets
shell: bash
run: ./generate-secrets.sh