-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathconfig.yml
68 lines (66 loc) · 2.21 KB
/
config.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
68
version: 2
jobs:
test:
docker:
- image: ghcr.io/runatlantis/testing-env:2021.08.31
steps:
- checkout
- run: make test-all
- run: make check-fmt
- run: make check-lint
e2e:
docker:
- image: circleci/golang:1.17 # If you update this, update it in the Makefile too
environment:
# This version of TF will be downloaded before Atlantis is started.
# We do this instead of setting --default-tf-version because setting
# that flag starts the download asynchronously so we'd have a race
# condition.
TERRAFORM_VERSION: 1.3.4
steps:
- checkout
- run: make build-service
# We don't run e2e tests on fork PRs because they don't have access to the secret env vars.
- run: if [ -z "${CIRCLE_PR_REPONAME}" ]; then ./scripts/e2e.sh; fi
# Check that there's no missing links for the website.
# This job builds the website, starts a server to serve it, and then uses
# muffet (https://github.com/raviqqe/muffet) to perform the link check.
website_link_check:
docker:
# This image's Dockerfile is at runatlantis.io/Dockerfile
- image: ghcr.io/runatlantis/ci-link-checker:2021.06.22
steps:
- checkout
- run: yarn install
- run: yarn website:build
- run:
name: http-server
command: http-server runatlantis.io/.vuepress/dist
background: true
# We use dockerize -wait here to wait until the server is up.
- run: |
dockerize -wait tcp://localhost:8080 -- \
muffet \
-e 'https://github\.com/runatlantis/atlantis/edit/master/.*' \
-e 'https://github.com/runatlantis/helm-charts#customization' \
--header 'Accept-Encoding:deflate, gzip' \
--buffer-size 8192 \
http://localhost:8080/
workflows:
version: 2
branch:
jobs:
- test:
filters:
branches:
ignore: /docs\/./
- e2e:
context:
- atlantis-e2e-tests
requires: [test]
filters:
branches:
# Ignore fork PRs since they don't have access to
# the atlantis-e2e-tests context (and also doc PRs).
ignore: /(pull\/\d+)|(docs\/.*)/
- website_link_check