From eba1b208f0aff356c03e8424e39868dcec09fb59 Mon Sep 17 00:00:00 2001 From: fujiwara Date: Wed, 8 May 2024 17:45:53 +0900 Subject: [PATCH] fix CI --- .github/workflows/release.yml | 34 ---------------------------------- .github/workflows/tagpr.yml | 12 ------------ .github/workflows/test.yml | 10 ++++++---- 3 files changed, 6 insertions(+), 50 deletions(-) delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/tagpr.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index d9f56fc..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: release - -on: - push: - branches: - - "!**/*" - tags: - - "v*" - workflow_dispatch: - inputs: - tag: - description: "release tag" - required: true - type: string - -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - ref: ${{ inputs.tag || github.ref }} - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: "1.21" - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v1 - with: - version: latest - args: release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tagpr.yml b/.github/workflows/tagpr.yml deleted file mode 100644 index dd426fe..0000000 --- a/.github/workflows/tagpr.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: tagpr -on: - push: - branches: ["main"] -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: Songmu/tagpr@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab72e5a..acdd4d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,23 +5,25 @@ jobs: strategy: matrix: go: - - '1.20' - '1.21' + - '1.22' name: Build runs-on: ubuntu-latest steps: - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} id: go - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build & Test run: | - go test -race ./... + go generate ./cmd/aws-sdk-client-gen . + go build -o aws-sdk-client-go ./cmd/aws-sdk-client-go/main.go + go test ./... env: GO111MODULE: on