diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..14fc7da --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,21 @@ +name: PR Tests + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.24" + + - name: Run Tests + run: go test -v ./... \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4549cad..9999cc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,10 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.24" # Adjust to your desired Go version - - - name: Run Tests - run: go test -v ./... + go-version: "1.24" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..51cc07e --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,12 @@ +project_name: action + +builds: + - skip: true + +release: + github: + owner: neonima + name: action + +archives: + - format: tar.gz