Scala 3 + Sonatype Central #24
This file contains hidden or 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
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-all: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Check code format | |
| uses: jrouly/scalafmt-native-action@v1 | |
| with: | |
| version: "3.8.3" | |
| arguments: "-c .scalafmt.conf --test example urlopt4s" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "21" | |
| cache: "npm" | |
| cache-dependency-path: urlopt4s-js/package-lock.json | |
| - name: Install dependencies | |
| run: cd urlopt4s-js && npm install webpack-cli --save-dev | |
| - name: Compile urlopt4s-js | |
| run: cd urlopt4s-js && npm exec webpack | |
| - name: Moving bundle | |
| run: mv urlopt4s-js/dist/main-bundle.mjs urlopt4s/resources/urlopt4s.mjs | |
| - uses: zhutmost/setup-mill@main | |
| - name: Compile | |
| run: mill '__.compile' | |
| - name: Test | |
| run: mill '__.test' |