Skip to content

Commit

Permalink
[WF:test] Test on pushes and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
m4heshd committed Apr 15, 2024
1 parent 7bd51ed commit 7becf0e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: test

on:
push:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- ubuntu-latest
name: Testing on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
# Checkout repo
- uses: actions/checkout@v4
# Set up Rust and Cargo
- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.77.2
# Run tests
- name: Run tests
run: cargo test
4 changes: 2 additions & 2 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.77.2
# Build client
# Build app
- name: Build backend
run: cargo build-${{ env.TARGET_PLATFORM }}
# Build client
# Package app for release
- name: Package app
run: cargo pack-${{ env.TARGET_PLATFORM }}
# Upload build artifact
Expand Down

0 comments on commit 7becf0e

Please sign in to comment.