31 lines
758 B
YAML
31 lines
758 B
YAML
name: Test
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash -ileo pipefail {0}
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
workflow_call:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
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
|
|
working-directory: ./src
|
|
run: deno lint |