-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (33 loc) · 987 Bytes
/
Copy pathtest.yml
File metadata and controls
35 lines (33 loc) · 987 Bytes
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
name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-20.04
name: Lint & run tests
strategy:
matrix:
dokku-version: ["v0.21.4", "v0.22.0", "v0.22.1"]
steps:
- uses: actions/checkout@v1
- name: Install test tools
run: sudo apt-get install -y bats shellcheck
- name: Lint
run: make lint
- name: Install dokku
run: |
wget https://raw.githubusercontent.com/dokku/dokku/$DOKKU_VERSION/bootstrap.sh
sudo DOKKU_TAG="$DOKKU_VERSION" bash bootstrap.sh
env:
DOKKU_VERSION: ${{ matrix.dokku-version }}
- name: Install discourse plugin
run: |
sudo dokku plugin:install file:///$(pwd) discourse
- name: Run tests
run: sudo make test
env:
# "an-engine" is used to test the env var parsing logic (-e), see issue #13
HOSTNAME: "an-engine.discourse.dokku.me"