Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup GitHub Actions CI * Update sbt.yml * Add more jobs * Report bundle size * Use NPX to run bundlesize * Add bundlesize token * Also test fullopt mode * Add publishing setup
- Loading branch information
Showing
4 changed files
with
69 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Slinky CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
release: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
version: 1.8 | ||
- name: Install NPM Dependencies | ||
run: npm install; cd native; npm install; cd .. | ||
- name: Test with SBT (fastopt) | ||
run: sbt ";scalajsReactInterop/test; + tests/test; + native/test" | ||
- name: Test with SBT (fullopt) | ||
run: sbt ";set scalaJSStage in Global := FullOptStage; scalajsReactInterop/test; + tests/test; + native/test" | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
version: 1.8 | ||
- name: Install NPM Dependencies | ||
run: npm install | ||
- name: Build Docs Site | ||
run: sbt docs/fullOptJS::webpack | ||
- name: Report Bundle Size | ||
run: npx bundlesize | ||
env: | ||
BUNDLESIZE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
build-intellij-plugin: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
version: 1.8 | ||
- name: Build IntelliJ Plugin | ||
run: sbt coreIntellijSupport/updateIdea 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 | ||
uses: actions/setup-java@v1 | ||
with: | ||
version: 1.8 | ||
- name: Publish with SBT | ||
run: bash ./publish.sh | ||
if: github.ref == 'refs/heads/master' || github.eventName == 'release' | ||
env: | ||
encrypted_key: ${{ secrets.key }} | ||
encrypted_iv: ${{ secrets.iv }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.