mirror of
https://github.com/google/gn-language-server.git
synced 2025-12-23 12:26:43 +00:00
Run tests on GitHub Actions
This commit is contained in:
parent
b0559317dc
commit
d989f55202
1 changed files with 19 additions and 0 deletions
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
|
@ -62,6 +62,22 @@ jobs:
|
||||||
- run: ./gradlew check
|
- run: ./gradlew check
|
||||||
working-directory: intellij-gn
|
working-directory: intellij-gn
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: dtolnay/rust-toolchain@8a40291d6a0a08b8fb98b13bad5a0305b42d5f9c # 1.92.0
|
||||||
|
with:
|
||||||
|
components: rustfmt, clippy
|
||||||
|
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
|
||||||
|
- uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: '22'
|
||||||
|
- run: cargo test
|
||||||
|
- run: ./gradlew test
|
||||||
|
working-directory: intellij-gn
|
||||||
|
|
||||||
build-server-and-extension:
|
build-server-and-extension:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
@ -173,6 +189,7 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- build-server-and-extension
|
- build-server-and-extension
|
||||||
- build-intellij-plugin
|
- build-intellij-plugin
|
||||||
|
- test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
|
|
@ -197,6 +214,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build-server-and-extension
|
- build-server-and-extension
|
||||||
|
- test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
|
|
@ -225,6 +243,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build-server-and-extension
|
- build-server-and-extension
|
||||||
|
- test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@8a40291d6a0a08b8fb98b13bad5a0305b42d5f9c # 1.92.0
|
- uses: dtolnay/rust-toolchain@8a40291d6a0a08b8fb98b13bad5a0305b42d5f9c # 1.92.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue