Skip to content

Fixed token setup

Fixed token setup #12

Workflow file for this run

name: Coverage Report
on: [push]
# this is used by github OIDC to assume the admin role later on
permissions: # see this: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
contents: write # This is required for actions/checkout
pull-requests: write
env:
FOUNDRY_PROFILE: ci
GITHUB_TOKEN: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}
jobs:
check:
strategy:
fail-fast: true
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Restore node modules from cache
uses: ./.github/actions/node-cache
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Run Forge coverage
run: |
echo "::set-output name=coverage::$(forge coverage --report summary > coverage.out)"
id: coverage
- name: Publish report
uses: ./.github/actions/coverage
with:
coverage: ${{ steps.coverage.outputs.coverage }}