-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (48 loc) · 1.27 KB
/
Copy pathci.yml
File metadata and controls
51 lines (48 loc) · 1.27 KB
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
name: CI
on:
push:
branches:
- '**'
- '!dependabot/**'
pull_request: {}
jobs:
fats:
name: FATS
if: success() && github.event_name == 'push'
runs-on: ubuntu-latest
env:
CLUSTER: kind
REGISTRY: docker-daemon
DOCKER_BUILDKIT: 1
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '17'
- uses: helm/kind-action@v1.1.0
- name: Setup env
run: |
job=$(date +%s) # TODO use something that is assigned by CI to guarantee uniqueness
echo "JOB_ID=${job}"
echo "CLUSTER_NAME=kind" >> $GITHUB_ENV
echo "NAMESPACE=fats" >> $GITHUB_ENV
shell: bash
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build Apps
run: .github/workflows/build.sh
shell: bash
timeout-minutes: 30
- name: Run Tests
run: .github/workflows/run.sh
shell: bash
timeout-minutes: 30
- name: Cleanup Tests
run: .github/workflows/cleanup.sh
shell: bash
if: always()
timeout-minutes: 10