mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-18 10:36:23 +00:00
Update test workflow.
This commit is contained in:
parent
1f89f30878
commit
c0d4270508
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@ -14,22 +14,31 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@v20
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-22.11
|
||||||
-
|
-
|
||||||
name: Cargo cache
|
name: Cargo cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: .rust/
|
path: |
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
target/
|
||||||
|
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
-
|
||||||
|
name: Start dependency services
|
||||||
|
run: docker-compose up -d
|
||||||
-
|
-
|
||||||
name: Build UI
|
name: Build UI
|
||||||
run: make build-ui
|
run: make build-ui
|
||||||
-
|
-
|
||||||
name: Run tests
|
name: Run tests
|
||||||
run: make test
|
run: nix-shell --command "make test"
|
||||||
-
|
|
||||||
name: Make cache accessible to caching action
|
|
||||||
run: |
|
|
||||||
sudo chown $(whoami):$(whoami) -R .rust
|
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
needs: tests
|
needs: tests
|
||||||
|
@ -35,6 +35,8 @@ services:
|
|||||||
- ./.docker-compose/postgresql/initdb:/docker-entrypoint-initdb.d
|
- ./.docker-compose/postgresql/initdb:/docker-entrypoint-initdb.d
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:6-alpine
|
image: redis:6-alpine
|
||||||
@ -66,3 +68,5 @@ services:
|
|||||||
- ALLOW_PLAINTEXT_LISTENER=yes
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
||||||
depends_on:
|
depends_on:
|
||||||
- zookeeper
|
- zookeeper
|
||||||
|
ports:
|
||||||
|
- "9092:9092"
|
Loading…
Reference in New Issue
Block a user