Skip to content

chore: reusable github workflows #1

chore: reusable github workflows

chore: reusable github workflows #1

Workflow file for this run

name: Test
on:
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 6 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
test:
strategy:
matrix:
deno: ["v2.2.12"]
os: [macOS-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno }}
- name: Run Deno Tests
run: deno test --parallel --coverage=coverage
- name: Generate Coverage
run: deno coverage --unstable ./coverage --lcov > ./coverage/lcov.info
- name: Coveralls
uses: coverallsapp/github-action@master
with:
flag-name: run-${{ matrix.deno }}-${{ matrix.os }}
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: /