Skip to content

build: bump actions/upload-artifact from 3 to 4 #92

build: bump actions/upload-artifact from 3 to 4

build: bump actions/upload-artifact from 3 to 4 #92

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- v*
pull_request:
schedule:
- cron: 0 7 1 * *
jobs:
build:
strategy:
matrix:
go-version:
- oldstable
- stable
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Run tests
run: make test-race test-coverage test-bench
- name: Build and run
run: make && ./bin/hellogopher hello
- name: Upload binary
uses: actions/upload-artifact@v4
if: matrix.go-version == 'stable'
with:
name: binary-${{ matrix.os }}
path: bin/hellogopher
if-no-files-found: error