snort/.github/workflows/test-lint.yaml

25 lines
650 B
YAML
Raw Normal View History

2023-03-28 14:34:01 +00:00
name: Test+Lint
2023-02-08 20:11:03 +00:00
on:
pull_request:
jobs:
2023-03-28 14:34:01 +00:00
test_and_lint:
2023-02-08 20:11:03 +00:00
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
2023-02-09 10:28:42 +00:00
with:
node-version: 16
2023-02-08 20:11:03 +00:00
- name: Install Dependencies
2023-02-09 12:32:19 +00:00
run: yarn install
2023-03-28 14:34:01 +00:00
- name: Build packages
run: yarn workspace @snort/nostr build
- name: Run tests
run: yarn workspace @snort/app test
- name: Check Eslint
run: yarn workspace @snort/app eslint
2023-02-08 20:11:03 +00:00
- name: Check Formatting
2023-02-15 14:04:44 +00:00
run: yarn workspace @snort/app prettier --check .