chore(ci): change pull request event to pull_request_target for label… #510
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
name: CI | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
CI: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup JVM | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "23" | |
distribution: "zulu" | |
cache: "sbt" | |
- name: Install sbt | |
uses: sbt/setup-sbt@v1 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- name: Cache SBT | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.ivy2/local | |
**/target/** | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt', 'project/*.sbt', 'project/*.scala') }} | |
restore-keys: | | |
${{ runner.os }}-sbt- | |
- name: Cache node | |
uses: actions/cache@v4 | |
with: | |
path: | | |
examples/client/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('example/client/package.json') }} | |
- name: Install dependencies | |
run: | | |
cd examples/client | |
npm install | |
# - name: Tests | |
# run: sbt +test | |
- name: server/dist | |
run: DEV=prod sbt server/dist | |
env: | |
NODE_OPTIONS: "--openssl-legacy-provider" |