Skip to content

Add describe-assets option #624

Add describe-assets option

Add describe-assets option #624

Workflow file for this run

name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
branches-ignore:
- 'dependabot/**'
pull_request_target:
branches:
- 'dependabot/**'
permissions:
contents: read
pull-requests: write
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
npm install
- run: |
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
with:
current-stats-json-path: ./__tests__/__mocks__/new-stats-with-chunks.json
base-stats-json-path: ./__tests__/__mocks__/old-stats-with-chunks.json
github-token: ${{ secrets.GITHUB_TOKEN }}
title: With chunk and module information
- uses: actions/checkout@v3
- uses: ./
with:
current-stats-json-path: ./__tests__/__mocks__/new-stats-assets.json
base-stats-json-path: ./__tests__/__mocks__/old-stats-assets.json
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./
with:
current-stats-json-path: ./__tests__/__mocks__/old-stats-assets.json
base-stats-json-path: ./__tests__/__mocks__/new-stats-assets.json
github-token: ${{ secrets.GITHUB_TOKEN }}
title: Flipped around
- uses: ./
with:
current-stats-json-path: ./__tests__/__mocks__/non-existent.json
base-stats-json-path: ./__tests__/__mocks__/non-existent.json
github-token: ${{ secrets.GITHUB_TOKEN }}
title: Non existent
- uses: ./
with:
current-stats-json-path: ./__tests__/__mocks__/old-stats-assets.json
base-stats-json-path: ./__tests__/__mocks__/old-stats-assets.json
github-token: ${{ secrets.GITHUB_TOKEN }}
title: No changes
- uses: ./
with:

Check failure on line 58 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 58
current-stats-json-path: ./__tests__/__mocks__/new-stats-assets.json
base-stats-json-path: ./__tests__/__mocks__/old-stats-assets.json
github-token: ${{ secrets.GITHUB_TOKEN }}
title: 'With describe-assets: \'none\''
describe-assets: none
- uses: ./
with:
current-stats-json-path: ./__tests__/__mocks__/old-stats-assets.json
base-stats-json-path: ./__tests__/__mocks__/old-stats-assets.json
github-token: ${{ secrets.GITHUB_TOKEN }}
title: 'With describe-assets: \'changed-only\''
describe-assets: changed-only