Skip to content

Nightly Builds

Nightly Builds #152

name: Nightly Builds
on:
schedule:
- cron: "0 0 * * *"
env:
GO_VERSION: '1.19.2'
jobs:
build:
name: Build latest Flow Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Update Flow Go
run: go get github.com/onflow/flow-go@master
- name: Tidy up
run: go mod tidy
- name: Build
run: go build -v ./...
continue-on-error: true
- name: create an issue
if: ${{ failure() }}
uses: dacbd/create-issue-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Nightly Flow Go build failed
body: |
The build with the latest flow-go failed. Please investigate and fix the issue.
Workflow Run: ${{ github.run_number }}
Commit: ${{ github.sha }}
Ref: ${{ github.ref }}
assignees: j1010001