Skip to content

add push-master workflow #2

add push-master workflow

add push-master workflow #2

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "test-ci-push" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: Run Git Hooks
run: |
echo 'before'
cat cmd/xgo/version.go
go run ./sript/git-hooks pre-commit --no-commit
git status
echo 'after'
cat cmd/xgo/version.go
- name: Check
run: git status