-
Notifications
You must be signed in to change notification settings - Fork 56
48 lines (48 loc) · 1.33 KB
/
ci.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
name: CI
on:
pull_request:
jobs:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- run: nix build
ci-matrix:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '[email protected]' ]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 100
- uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- uses: bahmutov/npm-install@v1
with:
working-directory: modules/webapp
- name: Install tailwindcss cli
run: |
curl -sSLo tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.1/tailwindcss-linux-x64
chmod 755 tailwindcss
mkdir -p bin
mv tailwindcss bin/
echo "PATH=$(pwd)/bin:$PATH" >> $GITHUB_ENV
- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
- uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.java }}
- name: Coursier cache
uses: coursier/cache-action@v6
- name: sbt ci ${{ github.ref }}
run: sbt ci
ci:
runs-on: ubuntu-22.04
needs: [ci-matrix, nix-build]
steps:
- name: Aggregate of lint, and all tests
run: echo "ci passed"