This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
102 lines (84 loc) · 2.29 KB
/
push.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Build and Test
on:
# Trigger the workflow on push or pull request,
# push only for the main branch
# PR for all branches
push:
branches:
- main
pull_request:
jobs:
build-and-test-docs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build documentation
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
sudo snap install yq
cd docs
make html-author-mode
grep -r "page unresolved" target/staging/docs/ && exit 1 || echo 'ok'
build-and-test-core:
name: "Cloudflow Core"
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ '8', '11', '13' ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache SBT and Coursier cache
uses: coursier/cache-action@v3
- name: Scalafmt check
run: cd core && sbt "scalafmtCheckAll; scalafmtSbtCheck"
- name: build-and-test
env:
SBT_OPTS: -Xms512M -Xmx2048M -Xss2M -XX:MaxMetaspaceSize=1024M
run: ./scripts/build-core.sh +test
build-and-test-sbt-examples:
name: "sbt samples"
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ '8' ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache SBT and Coursier cache
uses: coursier/cache-action@v3
- name: test-sbt-examples
run: ./scripts/build-sbt-examples.sh test
build-and-test-mvn-examples:
name: "mvn samples"
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ '8' ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache SBT and Coursier cache
uses: coursier/cache-action@v3
- name: test-maven-examples
run: ./scripts/build-mvn-examples.sh test
fossa-checks:
name: "FOSSA checks"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: FOSSA policy check
if: ${{ github.event_name != 'pull_request' }}
run: |-
cd core
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/spectrometer/master/install.sh | bash
fossa analyze && fossa test
env:
FOSSA_API_KEY: "${{secrets.FOSSA_API_KEY}}"