-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (37 loc) · 967 Bytes
/
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
name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.15.0"
- run: |
npm install
./node_modules/.bin/prettier --write "./sources/main.js" "./sources/index.html"
git diff --exit-code
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- uses: coursier/cache-action@v6
- run: sbt -v
scalafmtSbtCheck
scalafmtCheckAll
updateClassifiers
test
copyFilesFull
- if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'xuwei-k' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: sources
clean: true