mise-action/.github/workflows/test.yml
Jeff Dickey f079348b93
chore: added workflow_dispatch
can be used to manually trigger test runs
2023-03-30 12:17:08 -05:00

42 lines
973 B
YAML

name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
workflow_dispatch:
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
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
tool_versions:
- |
nodejs 18
- |
nodejs 16
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./
with:
tool_versions: ${{ matrix.tool_versions }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: rtx --version
- run: rtx exec -- node --version
- run: which node
- run: node -v