-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (41 loc) · 1.06 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
name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
test:
runs-on: "${{ matrix.os }}"
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.9.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: sbt/setup-sbt@v1
- 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' && matrix.os == 'ubuntu-latest' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: sources
clean: true