mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-23 00:23:36 +00:00
Update GitHub Action to fix broken pipeline (#1301)
* update github workflow to fix broken pipeline * switch to sbtn command, seems like no sbt -> sbtn link is provided anymore might just work like is... * nope, not the link is missing, it does not pack sbt at all does switching to sbt proper work? * update JVM to latest LTS * Revert "update JVM to latest LTS" This reverts commit 75baaa52e86f88d596d98d656824672aa4e25cdf.
This commit is contained in:
parent
d890877b19
commit
50f69784c0
2 changed files with 22 additions and 11 deletions
15
.github/workflows/test.yaml
vendored
15
.github/workflows/test.yaml
vendored
|
|
@ -24,29 +24,36 @@ jobs:
|
|||
- 5432:5432
|
||||
steps:
|
||||
- name: Cache SBT
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.ivy2/cache
|
||||
~/.sbt
|
||||
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Scala
|
||||
uses: coursier/setup-action@v1
|
||||
with:
|
||||
jvm: adopt:11
|
||||
apps: sbtn
|
||||
apps: sbt
|
||||
|
||||
- name: Run migrations
|
||||
run: sbt "server/run migrate"
|
||||
|
||||
- name: Run build
|
||||
run: sbt server/packArchiveZip
|
||||
|
||||
- name: Run tests
|
||||
run: sbt coverage test:compile quiet:test coverageReport
|
||||
|
||||
- name: Upload coverage
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: server.zip
|
||||
path: server/target/psforever-server-*.zip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue