From cc5cea7aa125641046bb06d07ff943cb481654be Mon Sep 17 00:00:00 2001 From: Antonio Pagano Date: Tue, 6 Aug 2024 09:35:02 -0500 Subject: [PATCH] task: updating the action to use go 1.22 --- .github/workflows/standard-go-test.yml | 47 +++++++++++++++++++++++--- .github/workflows/standard-stale.yml | 29 +++++++++++++--- 2 files changed, 67 insertions(+), 9 deletions(-) diff --git a/.github/workflows/standard-go-test.yml b/.github/workflows/standard-go-test.yml index 9788981..da36dda 100644 --- a/.github/workflows/standard-go-test.yml +++ b/.github/workflows/standard-go-test.yml @@ -2,11 +2,48 @@ name: Standard Test on: push: - branches: [ main ] + branches: [main] pull_request: jobs: - call-standard-test: - name: Test - uses: gobuffalo/.github/.github/workflows/go-test.yml@v1 - secrets: inherit + dependency-review: + if: ${{ github.event_name == 'pull_request' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Dependency Review + uses: actions/dependency-review-action@v1 + + standard-go-test: + name: go${{ matrix.go-version }}/${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + go-version: + - "1.22" + os: + - "ubuntu-latest" + - "macos-latest" + - "windows-latest" + + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + + - name: Test + if: ${{ matrix.os != 'windows-latest' }} + env: + YARN_ENABLE_IMMUTABLE_INSTALLS: 0 + run: | + go test -v -p 1 -race -cover -tags "sqlite,integration" ./... + + - name: Short Test + if: ${{ matrix.os == 'windows-latest' }} + env: + YARN_ENABLE_IMMUTABLE_INSTALLS: 0 + run: | + go test -v -p 1 -tags "sqlite,integration" ./... diff --git a/.github/workflows/standard-stale.yml b/.github/workflows/standard-stale.yml index 59a79c4..44267f0 100644 --- a/.github/workflows/standard-stale.yml +++ b/.github/workflows/standard-stale.yml @@ -5,7 +5,28 @@ on: - cron: "30 1 * * *" jobs: - call-standard-autocloser: - name: Autocloser - uses: gobuffalo/.github/.github/workflows/stale.yml@v1 - secrets: inherit + stale: + runs-on: ubuntu-latest + permissions: + issues: write # for actions/stale to close stale issues + pull-requests: write # for actions/stale to close stale PRs + + steps: + - uses: actions/stale@v6 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-issue-stale: 30 + days-before-issue-close: 7 + days-before-pr-stale: 45 + days-before-pr-close: 7 + stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days." + stale-pr-message: "This PR is stale because it has been open 45 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days." + close-issue-message: "This issue was closed because it has been stalled for 30+7 days with no activity." + close-pr-message: "This PR was closed because it has been stalled for 45+7 days with no activity." + stale-issue-label: "stale" + stale-pr-label: "stale" + close-issue-label: "s: closed" + close-pr-label: "s: closed" + exempt-issue-labels: "bug,security,s: accepted,s: blocked,s: hold" + exempt-pr-labels: "bug,security,s: accepted,s: blocked,s: hold" + exempt-all-milestones: true