Skip to content

Commit

Permalink
chore: Split test-ubuntu job by umask
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored and twpayne committed Nov 8, 2024
1 parent 31485fa commit 3bbc077
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/clear-pr-caches.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: clear-pr-caches

on:
pull_request:
types: [ closed ]
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ jobs:
name: chezmoi-windows-amd64
path: dist/chezmoi-nocgo_windows_amd64_v1/chezmoi.exe
test-ubuntu:
strategy:
fail-fast: false
matrix:
umask:
- "022"
- "002"
needs: changes
runs-on: ubuntu-20.04 # use older Ubuntu for older glibc
permissions:
Expand Down Expand Up @@ -308,18 +314,12 @@ jobs:
- name: run
run: |
go run . --version
- name: test-umask-022
if: github.event_name == 'push' || needs.changes.outputs.code == 'true'
env:
CHEZMOI_GITHUB_TOKEN: ${{ secrets.CHEZMOI_GITHUB_TOKEN }}
run: |
go test -ldflags="-X github.com/twpayne/chezmoi/v2/internal/chezmoitest.umaskStr=0o022" -race -timeout=1h ./...
- name: test-umask-002
- name: test-umask-${{ matrix.umask }}
if: github.event_name == 'push' || needs.changes.outputs.code == 'true'
env:
CHEZMOI_GITHUB_TOKEN: ${{ secrets.CHEZMOI_GITHUB_TOKEN }}
run: |
go test -ldflags="-X github.com/twpayne/chezmoi/v2/internal/chezmoitest.umaskStr=0o002" -race -timeout=1h ./...
go test -ldflags="-X github.com/twpayne/chezmoi/v2/internal/chezmoitest.umaskStr=0o${{ matrix.umask }}" -race -timeout=1h ./...
test-website:
runs-on: ubuntu-22.04
permissions:
Expand Down

0 comments on commit 3bbc077

Please sign in to comment.