-
-
Notifications
You must be signed in to change notification settings - Fork 57
99 lines (97 loc) · 3.29 KB
/
sbt.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Slinky CI
on:
push:
branches:
- main
pull_request:
release:
types: [published]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
scalajs: ["1.16.0"]
es2015_enabled: ["false", "true"]
steps:
- name: Configure git to disable Windows line feeds
run: "git config --global core.autocrlf false"
shell: bash
- uses: actions/checkout@master
- name: Set up JDK 1.8 and SBT
uses: olafurpg/setup-scala@v10
with:
java-version: 1.8
- name: Style checks
run: sbt styleCheck
- name: Install NPM Dependencies
run: npm install; cd tests; npm install; cd ..; cd native; npm install; cd ..; cd scalajsReactInterop; npm install; cd ..
shell: bash
- name: Test core and native (fastopt + fullopt)
run: sbt +tests/test +native/test "set scalaJSStage in Global := FullOptStage" +tests/test +native/test
env:
SCALAJS_VERSION: ${{ matrix.scalajs }}
ES2015_ENABLED: ${{ matrix.es2015_enabled }}
shell: bash
- name: Test Scala.js React Interop (fastopt + fullopt)
run: sbt scalajsReactInterop/test "set scalaJSStage in Global := FullOptStage" scalajsReactInterop/test
env:
SCALAJS_VERSION: ${{ matrix.scalajs }}
ES2015_ENABLED: ${{ matrix.es2015_enabled }}
shell: bash
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up JDK 1.8 and SBT
uses: olafurpg/setup-scala@v10
with:
java-version: 1.8
- name: Build Docs Site
run: sbt docs/fullLinkJS
- name: Export Next.js
run: cd docs && npm install && npm run export
build-intellij-plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up JDK 1.8 and SBT
uses: olafurpg/setup-scala@v10
with:
java-version: 1.8
- name: Build IntelliJ Plugin
run: sbt coreIntellijSupport/updateIntellij coreIntellijSupport/compile
publish:
needs: [test, build-docs, build-intellij-plugin]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up JDK 1.8 and SBT
uses: olafurpg/setup-scala@v10
with:
java-version: 1.8
- run: git fetch --unshallow
- name: Publish with SBT
run: export JAVA_OPTS="-Xmx4g" && bash ./publish.sh
if: github.ref == 'refs/heads/main' || github.event_name == 'release'
env:
encrypted_key: ${{ secrets.key }}
encrypted_iv: ${{ secrets.iv }}
PGP_PASSPHRASE: ${{ secrets.pgp_passphrase }}
publish-intellij-plugin:
needs: [test, build-docs, build-intellij-plugin]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up JDK 1.8 and SBT
uses: olafurpg/setup-scala@v10
with:
java-version: 1.8
- run: git fetch --unshallow
- name: Publish to Marketplace
run: sbt coreIntellijSupport/updateIntellij coreIntellijSupport/packageArtifact coreIntellijSupport/packageArtifact coreIntellijSupport/publishAutoChannel
if: github.ref == 'refs/heads/main' || github.event_name == 'release'
env:
IJ_PLUGIN_REPO_TOKEN: ${{ secrets.ij_plugin_repo_token }}