Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Jul 2, 2024
1 parent 8b72ddf commit c5cf818
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on:
push:
branches: ["main"]
tags: ["v*"]
pull_request:
branches: ["*"]

jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
with:
power: true

- name: Check formatting
run: make code-check || echo "Run `make pre-ci`"

- name: Check generated code is up to date
run: make smithy4s && git diff --exit-code

- name: Check Docker build
run: make docker

8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ setup-ide:
cd shared && scala-cli setup-ide .
cd frontend && scala-cli setup-ide .
cd backend && scala-cli setup-ide .

code-check:
cd backend && scala-cli fmt . --check
cd frontend && scala-cli fmt . --check

pre-ci:
cd backend && scala-cli fmt .
cd frontend && scala-cli fmt .
1 change: 0 additions & 1 deletion frontend/frontendMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def renderTest(id: TestId, init: Test, signal: Signal[Test]) =
"Generate new test",
onClick.mapToStrict(Action.GenerateNewTest) --> actionBus,
cls := "bg-sky-700 text-lg font-bold p-2 text-white"

)

val app =
Expand Down

0 comments on commit c5cf818

Please sign in to comment.