From d773e050580b8ad2f8844e39b3c3f62c68cc47ef Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Fri, 30 Jun 2023 16:22:50 +0200 Subject: [PATCH] refactor: testing + add go test --- .../workflows/{test.yml => test-kubo-e2e.yml} | 2 +- .github/workflows/test-tooling.yml | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) rename .github/workflows/{test.yml => test-kubo-e2e.yml} (99%) create mode 100644 .github/workflows/test-tooling.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test-kubo-e2e.yml similarity index 99% rename from .github/workflows/test.yml rename to .github/workflows/test-kubo-e2e.yml index cb169ef6e..1b1acded3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test-kubo-e2e.yml @@ -1,4 +1,4 @@ -name: Test +name: Test Kubo (e2e) on: workflow_dispatch: diff --git a/.github/workflows/test-tooling.yml b/.github/workflows/test-tooling.yml new file mode 100644 index 000000000..31eaf5f94 --- /dev/null +++ b/.github/workflows/test-tooling.yml @@ -0,0 +1,30 @@ +name: Test Tooling + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + +jobs: + test: + runs-on: 'ubuntu-latest' + strategy: + fail-fast: false + defaults: + run: + shell: bash + steps: + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: 1.20.4 + - uses: actions/checkout@v3 + with: + path: 'gateway-conformance' + - uses: protocol/cache-go-action@v1 + - name: Run the tests + shell: bash + run: | + go test ./tooling/... \ No newline at end of file