Skip to content

Commit

Permalink
Update git configuration to use LF line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuaNerin committed Jun 10, 2024
1 parent b457039 commit 6b1bf18
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ jobs:
- runs-on: [ 'macOS', 'self-hosted' ]
go-version: '1.15'

runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v4

- name: Set git to use LF
run: |
git config core.autocrlf false
git rm --cached -r .
git reset --hard
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand All @@ -51,7 +57,9 @@ jobs:
run: go build -v ./...

- name: Test (purego)
run: go test -test.short --tags=purego ./...
run: go test --tags=purego ./...
# run: go test -test.short --tags=purego ./...

- name: Test
run: go test -test.short ./...
run: go test ./...
# run: go test -test.short ./...
6 changes: 2 additions & 4 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:

runs-on:
- ubuntu-latest
- [ 'macOS', 'self-hosted' ]
- [ 'macOS', 'self-hosted', 'lint' ]
- windows-latest

exclude:
- runs-on: [ 'macOS', 'self-hosted' ]
- runs-on: [ 'macOS', 'self-hosted', 'lint' ]
go-version: '1.15'

runs-on: ${{ matrix.runs-on }}
Expand All @@ -51,12 +51,10 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
skip-go-installation: true
version: v1.59.0

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
skip-go-installation: true
version: v1.59.0
args: --build-tags purego

0 comments on commit 6b1bf18

Please sign in to comment.