From 2811f8f89b0e61ad51635b66fa256843d29b1fda Mon Sep 17 00:00:00 2001 From: Felix Seifert Date: Sun, 16 Jul 2023 23:20:50 +0200 Subject: [PATCH] ci: run integration tests with code changes before releasing new action This GH Action workflow runs integration tests on `push` and `pull_request` with the latest code of this `rust-action`. It does require neither a release nor a push to master to test the latest changes in this action. This workflow can be used as required test for a branch protection rule. --- .github/workflows/integration-test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/integration-test.yml diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml new file mode 100644 index 0000000..93ffc51 --- /dev/null +++ b/.github/workflows/integration-test.yml @@ -0,0 +1,23 @@ +name: Integration test for new action version + +on: + push: + branches: [ "master" ] + pull_request: + types: [opened, reopened, synchronize] + +jobs: + it: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Verify that Docker image can be built + run: | + docker build . + - name: Run tests of subdir `integration-test` + uses: ./ + with: + args: | + cargo fmt --manifest-path integration-test/Cargo.toml -- --check \ + && cargo clippy --manifest-path integration-test/Cargo.toml -- -Dwarnings \ + && cargo test --manifest-path integration-test/Cargo.toml \ No newline at end of file