Skip to content

fix file path

fix file path #12006

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
- release/**
permissions: read-all
jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
test-unit-cover:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
<<<<<<< HEAD

Check failure on line 24 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
go-version: '1.22'
=======
go-version: "1.22"
>>>>>>> main
check-latest: true
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
.github/workflows/test.yml
**/**.sol
**/**.go
go.mod
go.sum
*.toml
- name: Test and Create Coverage Report
run: |
make test-unit-cover
if: env.GIT_DIFF
- uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
# We were getting a 500 error on codecov servers
# so we decided to avoid blocking the CI if this fails
fail_ci_if_error: false
if: env.GIT_DIFF
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test-scripts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
.github/workflows/test.yml
./scripts/**
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip" # caching pip dependencies
if: env.GIT_DIFF
- name: Install Pytest
run: |
python -m pip install --upgrade pip
pip install pytest
if: env.GIT_DIFF
- name: Test Scripts
run: |
make test-scripts
if: env.GIT_DIFF