BREAKING: Refactor whole codebase #985
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: master | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Tests | |
run: | | |
cd tests | |
docker-compose up -d drivers | |
docker exec drivers deno test -A --config tsconfig.json --no-check=remote tests/integration | |
docker exec drivers deno test -A --config tsconfig.json --no-check=remote tests/unit | |
console-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: vx.x.x | |
- name: Run Console Tests | |
run: | | |
deno test -A tests/console | |
linter: | |
# Only one OS is required since fmt is cross platform | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: vx.x.x | |
- name: Lint | |
run: deno lint --ignore=examples | |
- name: Formatter | |
run: deno fmt --check |