Skip to content

Add Ruby support (#21) #48

Add Ruby support (#21)

Add Ruby support (#21) #48

Workflow file for this run

name: 'build-test-coverage'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
npm ci
- 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
- name: Set Node.js 21.x
uses: actions/setup-node@v3
with:
node-version: 21.x
- name: Install dependencies
run: npm ci
- name: Rebuild the dist/ directory
run: |
npm run build
npm run package
- run: |
npm run test:cov
- run: echo ${{ github.event.issue}}
- run: echo ${{ github.sha}}
- if: github.event_name == 'pull_request'
uses: ./
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
COVERAGE_FILE_PATH: "./coverage/lcov.info"
COVERAGE_FORMAT: "lcov"
DEBUG: coverage
- if: github.event_name == 'pull_request' || github.event_name == 'push'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}