-
Notifications
You must be signed in to change notification settings - Fork 21
61 lines (49 loc) · 1.69 KB
/
ci.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
name: CI
on:
workflow_dispatch:
push:
branches-ignore:
- main
- dev
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Cache - GHA
uses: actions/cache@v2
with:
path: ~/.cache/coursier/v1/https
key: ${{ runner.OS }}-coursier-cache
- name: Add extra resolvers
run: curl https://${{ secrets.ARTIFACTS_CACHE_BUCKET }}/resolvers.sbt --create-dirs -o ~/.sbt/resolvers.sbt
- name: Setup
uses: actions/[email protected]
with:
distribution: adopt
java-version: 11
java-package: jdk
architecture: x64
- name: Init Submodule for schema
run: git submodule init
- name: Update Submodule for schema
run: git submodule update
- name: Test
run: sbt clean test -Dconfig.file=hat/conf/application.test.conf
# - name: Coverage - off until we re-add Coverage
# run: sbt "project hat" coverage test -Dconfig.file=hat/conf/application.test.conf
- name: Build
run: sbt Docker/stage && docker build hat/target/docker/stage
- name: AWS - Configure
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.DEPLOYER_SHARED_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DEPLOYER_SHARED_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Cache - Upload
run: aws s3 sync ~/.cache/coursier/v1/https/ s3://${{ secrets.ARTIFACTS_CACHE_BUCKET }} --sse AES256 --follow-symlinks --no-progress