Skip to content

Commit

Permalink
ci: windows git config
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Mar 23, 2024
1 parent 1912d77 commit 1cec6c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,8 @@ workflows:
name: go/golang
tag: 1.20-alpine

- go/test:
name: test-windows
executor: windows
pre-steps:
- run: |
git config --global core.autocrlf false
git config --global core.symlinks true
- run: |
choco upgrade golang
echo 'export PATH="$PATH:/c/Program Files/Go/bin"' > $BASH_ENV
- run: go version

- lint
- build
- run

- update-windows-golden:
filters:
Expand Down Expand Up @@ -109,20 +96,6 @@ jobs:
path: ./dist
destination: dist

run:
executor:
name: go/golang
tag: 1.20-alpine
steps:
- go/install: {package: git}
- go/install-ssh
- checkout
- go/mod-download
- run: |
mkdir -p dist
go build -o dist/gotestsum .
- run: dist/gotestsum

lint:
executor:
name: go/golang
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ on:
jobs:
Build:
strategy:
fail-fast: false
matrix:
go-version: [stable, oldstable]
platform: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Setup git
# required to run tests on windows
run: |
git config --global core.autocrlf false
git config --global core.symlinks true
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install Go
Expand Down

0 comments on commit 1cec6c4

Please sign in to comment.