From 6f0248ea00d08959ac828ca210ee0f22d516576f Mon Sep 17 00:00:00 2001 From: Taliesin Millhouse Date: Sat, 7 Jan 2023 10:38:15 +1100 Subject: [PATCH] Update and rename ci.yml to ci.yaml --- .github/workflows/ci.yaml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 36 ------------------------------------ 2 files changed, 35 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..5350f2d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,35 @@ +name: CI +on: + push: + branches: + - main + pull_request: + branches: + - main +permissions: + contents: write + id-token: write +jobs: + lint: + name: Lint + uses: gofor-little/github-actions/.github/workflows/golang-lint.yaml@main + test: + name: Test + uses: gofor-little/github-actions/.github/workflows/golang-test.yaml@main + bump-tag: + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + needs: + - lint + - test + name: Bump Tag + uses: gofor-little/github-actions/.github/workflows/bump-tag.yaml@main + release: + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + needs: + - bump-tag + name: Release + uses: gofor-little/github-actions/.github/workflows/github-release.yaml@main + with: + tag: ${{ needs.bump-tag.outputs.bumped-tag }} + secrets: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 7f357f9..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: CI - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: golangci/golangci-lint-action@v2 - - security-check: - name: Security Check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: securego/gosec@master - with: - args: ./... - test: - name: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: ^1.17 - - run: | - go get -v -t -d ./... - - run: | - go test -v ./...