From c6af12432a7fafca6b7ec8f3827251317463906f Mon Sep 17 00:00:00 2001 From: Kijima Daigo Date: Tue, 11 Jun 2024 22:45:33 +0900 Subject: [PATCH] ci: remove redundunt actions Signed-off-by: Kijima Daigo --- .github/workflows/build-pr.yml | 47 ---------------------------------- .github/workflows/build.yml | 3 +++ 2 files changed, 3 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/build-pr.yml diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml deleted file mode 100644 index 85e9e4eca..000000000 --- a/.github/workflows/build-pr.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: build-pr - -on: - pull_request: - branches: - - main - -jobs: - run: - runs-on: ubuntu-latest - - strategy: - matrix: - go: [1.21.x, 1.22.x] - - steps: - - name: checkout source code - uses: actions/checkout@v4 - - - name: setup go environment - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go }} - - - name: create go.mod - run: | - # Fix for "cannot find main module" issue - go mod init github.com/opencontainers/runtime-spec - - go get -d ./schema/... - - - name: run golangci-lint - uses: golangci/golangci-lint-action@v4 - with: - version: v1.56.1 - args: --verbose - - - name: run tests - run: | - set -x - make install.tools - - make .govet - - make .gitvalidation - make docs - make -C schema test diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2fab93002..1274470e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main jobs: run: