Skip to content

chore(main): release 6.0.0 #3909

chore(main): release 6.0.0

chore(main): release 6.0.0 #3909

Workflow file for this run

name: "build-test"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
action-is-pristine: # make sure nothing changes in the action.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/actions/public/setup-node-pnpm@v1
- run: pnpm i
- run: git --no-pager diff --compact-summary --exit-code
# unit-test: # make sure unit-tests run
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: streetsidesoftware/actions/public/setup-node-pnpm@v1
# - run: pnpm i
# # Build should not be necessary to run tests
# - env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: GITHUB_OUTPUT="" TEST="true" pnpm test
clean-build: # make sure nothing changes with a clean build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/actions/public/setup-node-pnpm@v1
- run: pnpm i
# Ensure the repository is clean after build
- run: pnpm clean-build
- run: git --no-pager diff --compact-summary --exit-code
coverage: # run coverage and unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/actions/public/setup-node-pnpm@v1
- run: pnpm i
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: GITHUB_OUTPUT="" TEST="true" pnpm coverage
- name: Upload coverage Coveralls
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # 2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./action-src/coverage/lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v3
with:
directory: "./action-src"
files: ./coverage/lcov.info