Skip to content

Commit

Permalink
Revert yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
GonzaloSaez committed Jan 10, 2025
1 parent d24a641 commit 4df0241
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,44 @@
name: build
on: [push, pull_request, workflow_dispatch]
on: [push, pull_request]
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}/go
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/mpi-operator
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Clone the code
uses: actions/checkout@v3
with:
path: ${{ env.GOPATH }}/src/github.com/kubeflow/mpi-operator
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: ${{ env.GOPATH }}/src/github.com/kubeflow/mpi-operator/go.mod
- name: fmt check
run: make fmt
- name: go mod tidy
run: make tidy
- name: Build
run: make mpi-operator.v2
- name: generate codes
run: make verify-generate
- name: Run tests
run: make test
e2e:
name: E2E
runs-on: ubuntu-latest
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
kubernetes-version: ["v1.31.1"]
kubernetes-version: ["v1.29.8", "v1.30.4", "v1.31.1"]
steps:
- name: Clone the code
uses: actions/checkout@v3
Expand Down

0 comments on commit 4df0241

Please sign in to comment.