1159cl/.gitea/workflows/deno.yml
Mario Romero 033a0c0622
Some checks failed
Deno app build and testing / defaults (push) Failing after 0s
Deno app build and testing / deno (push) Failing after 31s
Update '.gitea/workflows/deno.yml'
2023-05-17 05:09:21 +00:00

42 lines
981 B
YAML

name: Deno app build and testing
defaults:
run:
shell: bash -ileo pipefail {0}
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
defaults:
run:
working-directory: ./src
deno:
runs-on: ubuntu-latest
timeout-minutes: 5
working-dir: inherit
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install deno (aarch64)
run: |
curl -s https://gist.githubusercontent.com/LukeChannings/09d53f5c364391042186518c8598b85e/raw/ac8cd8c675b985edd4b3e16df63ffef14d1f0e24/deno_install.sh | sh
echo 'export DENO_INSTALL="/root/.deno"' >> $HOME/.bashrc
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> $HOME/.bashrc
cat $HOME/.bashrc
source $HOME/.bashrc
- name: Run linter
run: deno lint
- name: Run tests
run: deno task test
- name: Run type check
run: deno check *.ts && deno check **/*.ts