Skip to content

Add an event for files changed during watch #144

Add an event for files changed during watch

Add an event for files changed during watch #144

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Checkout code
uses: actions/checkout@v4
- name: Bootstrap
run: go install ./cmd/dawn
- name: Restore cache
uses: actions/cache/restore@v3
with:
path: .dawn/build
key: dawn-build-${{ github.ref }}
- name: Build
run: dawn
- name: Save cache
uses: actions/cache/save@v3
with:
path: .dawn/build
key: dawn-build-${{ github.ref }}
- name: Test
run: go test ./... -coverprofile=coverage.out
- name: Upload coverage data
if: ${{ matrix.os != 'windows-latest' }}
uses: codecov/codecov-action@v4
with:
files: ./coverage.out
fail_ci_if_error: true
verbose: true
env_vars: OS
token: ${{ secrets.CODECOV_TOKEN }}