-
Notifications
You must be signed in to change notification settings - Fork 7
62 lines (49 loc) · 1.57 KB
/
ci.yaml
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: Infra CI
on:
pull_request:
paths-ignore:
- '.github/actions/**'
- '.github/workflows/build*'
jobs:
test-build:
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Test mill scalafix rules
run: cd project-builder/mill/scalafix && sbt test
- name: Start minikube
run: minikube start
- name: Build up base docker images
env:
BUILD_ONLY_DEFAULT_JDK: true
run: |
eval $(minikube -p minikube docker-env)
scripts/build-all.sh test
- name: Test build
run: scripts/test-build.sh
test-cli:
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v3
- uses: coursier/setup-action@v1
with:
apps: scala sbt mill:0.10.10
- name: Install scala-cli
run: |
curl -s --compressed "https://virtuslab.github.io/scala-cli-packages/KEY.gpg" | sudo apt-key add -
sudo curl -s --compressed -o /etc/apt/sources.list.d/scala_cli_packages.list "https://virtuslab.github.io/scala-cli-packages/debian/scala_cli_packages.list"
sudo apt-get update && \
sudo apt-get install scala-cli && \
scala-cli --version
- name: Start minikube
run: minikube start
- name: Build up base docker images
env:
BUILD_ONLY_DEFAULT_JDK: true
run: |
eval $(minikube -p minikube docker-env)
scripts/build-all.sh test
- name: Test CLI
run: scripts/test-cli.sh