github-profile-trophy-reiyu.../.github/workflows/testing.yml
Alexandro Castro 5dc3379214
Improvements on workflow and files (#222)
* chore: improvements

* chore: add testing workflow

* fix: types and lint

* chore: change dynamic

* chore: improvements

* chore: no need repository to check status
2023-09-30 01:54:23 +09:00

22 lines
529 B
YAML

name: Check PR Test
on:
pull_request:
branches:
- master
jobs:
install-dependencies:
runs-on: ubuntu-latest
steps:
- name: Check if PR is in draft mode
run: |
if [ "${{ github.event.pull_request.draft }}" == "true" ]; then
echo "PR is in draft mode, skipping workflow"
exit 78
fi
- name: Set up Deno
uses: denolib/setup-deno@v2
with:
deno-version: "1.37.0"
- name: Run tests
run: deno test --allow-env