Merge pull request #1060 from gittuf/fix-lint-ci #622
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests-locale | |
on: | |
push: | |
branches: ['main'] | |
paths-ignore: | |
- "docs/*" | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "docs/*" | |
- "**.md" | |
permissions: read-all | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: ['1.24'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set locale | |
run: | | |
sudo apt-get update && sudo apt-get install tzdata locales -y | |
sudo sed -i '/fr_FR.UTF-8/s/^# //g' /etc/locale.gen && sudo locale-gen | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Install Go | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: true | |
- name: Test | |
run: go test -timeout 20m ./... | |
env: | |
LANG: "fr_FR.UTF-8" | |
LANGUAGE: "fr_FR:fr" | |
LC_ALL: "fr_FR.UTF-8" |