From eab56b53fec1ed96ea80cefb08665d6f915c80fb Mon Sep 17 00:00:00 2001 From: Jerboa-app Date: Thu, 25 Jan 2024 08:17:58 +0000 Subject: [PATCH] add pr workflow --- .github/workflows/build-and-test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..7c89858 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,23 @@ +name: Build and test + +on: + pull_request: + workflow_dispatch: + +jobs: + build_test: + strategy: + matrix: + os: [ubuntu-latest, ubuntu-20.04, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + + - name: setup rust stable + run: curl https://sh.rustup.rs -sSf | sh -s -- -y + + - name: unit tests + run: | + cp tests/*.json . + cargo test --all --release \ No newline at end of file