Skip to content

feat: add readme to proxy actions and attach script to release tag #451

feat: add readme to proxy actions and attach script to release tag

feat: add readme to proxy actions and attach script to release tag #451

Workflow file for this run

name: "PR Checks"
on:
pull_request:
types: [opened, synchronize, edited, closed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
COVERAGE_FILE: ./coverage/report.json
jobs:
validate-title:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
check-packages-changed:
name: Assign project changed
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.packages-changed.outputs.any_changed }}
steps:
- uses: actions/checkout@v3
- name: Check external packages changes
id: packages-changed
uses: tj-actions/changed-files@v22.2
with:
files: |
**/packages/**
changesets:
name: Changeset Checks
needs: check-packages-changed
if: ${{ github.head_ref != 'changeset-release/main' && needs.check-packages-changed.outputs.changed == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# need this to get full git-history/clone in order to build changelogs and check changesets
fetch-depth: 0
- uses: FuelLabs/github-actions/setups/node@master
with:
pnpm-version: 9.5.0
- run: pnpm changeset:check
audit:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
with:
pnpm-version: 9.5.0
- run: pnpm audit --prod
lint-build:
name: Lint & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
with:
pnpm-version: 9.5.0
- run: |
pnpm lint
pnpm build
test:
name: Tests with coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
with:
pnpm-version: 9.5.0
- name: Checking PR Number
uses: jwalton/gh-find-current-pr@v1
id: findPr
- name: Run Jest Tests
run: |
pnpm test:ci --outputFile="${{ env.COVERAGE_FILE }}"
- name: Publish coverage
uses: artiomtr/jest-coverage-report-action@v2.0.5
if: ${{ steps.findPr.outputs.number }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
package-manager: pnpm
annotations: failed-tests
test-script: pnpm test:ci
prnumber: ${{ steps.findPr.outputs.number }}
skip-test: all
coverage-file: ${{ env.COVERAGE_FILE }}
base-coverage-file: ${{ env.COVERAGE_FILE }}