Skip to content

Commit

Permalink
task: updating the action to use go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Aug 6, 2024
1 parent 5e64024 commit cc5cea7
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 9 deletions.
47 changes: 42 additions & 5 deletions .github/workflows/standard-go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ./...
29 changes: 25 additions & 4 deletions .github/workflows/standard-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cc5cea7

Please sign in to comment.