Update README.md #154
This file contains 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: CI for Windows | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Prepare git | |
run: git config --global core.autocrlf false | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Build | |
run: go build -v ./... | |
- name: Checkout dummy repo | |
uses: actions/checkout@v4 | |
with: | |
repository: seachicken/can | |
path: ci-test | |
fetch-depth: 0 | |
- name: Test | |
working-directory: ./ci-test | |
run: | | |
foreach ($branch in $(git branch --all | findstr /r '\<\s*remotes' | findstr /v /r 'main$')) { | |
git branch --track $(echo $branch | Select-String -Pattern '.+/(.+$)' | %{$_.matches.groups[1].Value}) "$branch".trim() | |
} | |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token | |
go test $(go list ../... | grep -v /conn) -v | |