Skip to content

Show can't delete reason if has uncommitted changes (#123) #162

Show can't delete reason if has uncommitted changes (#123)

Show can't delete reason if has uncommitted changes (#123) #162

Workflow file for this run

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