Skip to content

Commit

Permalink
test: add integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Apr 6, 2024
1 parent 10aaa49 commit a8a4859
Show file tree
Hide file tree
Showing 60 changed files with 759 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
runner: macos-latest
- target: x86_64-pc-windows-msvc
runner: windows-latest
fail-fast: false

runs-on: ${{ matrix.runner }}

Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ jobs:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
run: |
gh release create \
--draft \
--notes-from-tag \
--verify-tag \
"$TAG" \
"$ASSETS"/*.zip
gh release create \
--draft --notes-from-tag --verify-tag \
"$TAG" "$ASSETS"/*.zip
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
test:
strategy:
matrix:
runner:
- ubuntu-latest
- windows-latest
- macos-latest
fail-fast: false

runs-on: ${{ matrix.runner }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

- name: Test
run: cargo test
Loading

0 comments on commit a8a4859

Please sign in to comment.