From ebfe7bc244f51014005f38c32b1eb7b1797f5e8d Mon Sep 17 00:00:00 2001 From: nhas Date: Fri, 31 Jan 2025 15:50:24 +1300 Subject: [PATCH] Hopefully fix github actions again --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++++++++---- go.mod | 2 +- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2131b94..45c3b84 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,13 +4,38 @@ on: push: branches: [ "main" ] tags: [ 'v*.*.*' ] - workflow_run: - workflows: ["Testing RSSH"] - types: [completed] - conclusion: success jobs: + e2e_tests: + runs-on: ubuntu-latest + strategy: + fail-fast: true + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.23.1" + + - name: Update repos + run: sudo apt update + + - name: Install mingw for windows dll tests + run: sudo apt install -y gcc-mingw-w64 + + - name: Make integration tests + run: yes | make e2e + + - name: Run tests + working-directory: e2e + run: ./e2e + build: + needs: e2e_tests runs-on: ubuntu-latest strategy: fail-fast: true diff --git a/go.mod b/go.mod index 351fece..ca20983 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( golang.org/x/net v0.34.0 golang.org/x/sys v0.29.0 gorm.io/gorm v1.25.12 - gvisor.dev/gvisor v0.0.0-20250130013701-88ba1d0d00fa + gvisor.dev/gvisor@go v0.0.0-20250130174428-e0435b9a53ea ) require (