1159cl/.gitea/workflows/test.yml

31 lines
758 B
YAML
Raw Normal View History

2023-05-18 05:07:15 +00:00
name: Test
2023-05-16 18:43:04 +00:00
2023-05-16 20:48:53 +00:00
defaults:
run:
2023-05-17 05:01:00 +00:00
shell: bash -ileo pipefail {0}
2023-05-16 20:48:53 +00:00
2023-05-16 18:43:04 +00:00
on:
pull_request:
branches: [ main ]
2023-05-18 01:03:44 +00:00
workflow_call:
2023-05-16 18:43:04 +00:00
jobs:
2023-05-17 23:24:51 +00:00
test:
2023-05-16 18:43:04 +00:00
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
2023-05-16 20:23:55 +00:00
- name: Checkout
2023-05-16 18:43:04 +00:00
uses: actions/checkout@v3
2023-05-16 20:32:57 +00:00
- name: Install deno (aarch64)
2023-05-16 20:36:31 +00:00
run: |
curl -s https://gist.githubusercontent.com/LukeChannings/09d53f5c364391042186518c8598b85e/raw/ac8cd8c675b985edd4b3e16df63ffef14d1f0e24/deno_install.sh | sh
2023-05-16 20:42:15 +00:00
echo 'export DENO_INSTALL="/root/.deno"' >> $HOME/.bashrc
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> $HOME/.bashrc
2023-05-16 20:44:21 +00:00
cat $HOME/.bashrc
2023-05-16 20:46:11 +00:00
source $HOME/.bashrc
2023-05-16 18:43:04 +00:00
- name: Run linter
2023-05-17 05:11:38 +00:00
working-directory: ./src
2023-05-17 05:15:34 +00:00
run: deno lint