Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ runs:
using: "composite"
steps:
- name: Install Just
uses: extractions/setup-just@v3
uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 #v4
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 #v6.0.8
if: ${{ !inputs.pnpm-version }}
- name: Install pnpm (override)
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 #v6.0.8
if: ${{ inputs.pnpm-version }}
with:
version: ${{ inputs.pnpm-version }}
- name: Set up Go
uses: actions/setup-go@v6
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #v6.4.0
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.go-version && '' || 'go.mod' }}
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
persist-credentials: false
- name: Run Common Setup
uses: ./.github/actions/setup
- name: Cache Go tools
uses: actions/cache@v5
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae #v5.0.5
with:
path: |
~/go/bin/golangci-lint
Expand All @@ -36,7 +38,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
persist-credentials: false
- name: Run Common Setup
uses: ./.github/actions/setup
- name: Build Templates
Expand All @@ -49,13 +53,15 @@ jobs:
needs: [lint, test]
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
persist-credentials: false
- name: Run Common Setup
uses: ./.github/actions/setup
- name: Build Application
run: just build
- name: Upload binary
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
if: github.ref == 'refs/heads/main'
with:
name: pkgstatsd
Expand All @@ -68,7 +74,7 @@ jobs:
if: github.ref == 'refs/heads/main'
steps:
- name: Download binary
uses: actions/download-artifact@v8
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c #v8.0.1
with:
name: pkgstatsd
- name: Deploy
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/update-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
token: ${{ secrets.MAINTENANCE_TOKEN }}
persist-credentials: false
- name: Run Common Setup
uses: ./.github/actions/setup
with:
Expand All @@ -30,7 +31,7 @@ jobs:
- name: Run Tests
run: just test
- name: Commit updates
uses: stefanzweifel/git-auto-commit-action@v7
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 #v7.1.0
with:
commit_message: Update Go dependencies
commit_user_name: Maintenance Bob
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/update-pnpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
token: ${{ secrets.MAINTENANCE_TOKEN }}
persist-credentials: false
- name: Fetch latest pnpm version and update package.json
run: |
LATEST=$(npm view pnpm version)
Expand All @@ -34,7 +35,7 @@ jobs:
- name: Run Tests
run: just test
- name: Commit updates
uses: stefanzweifel/git-auto-commit-action@v7
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 #v7.1.0
with:
commit_message: Update pnpm dependencies
commit_user_name: Maintenance Bob
Expand Down