Allow to generate badges #349
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |