Merge pull request #8 from smartweaver/fix/tags-not-appending #45
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: v0.x - Code Validation | |
on: | |
pull_request: | |
branches: | |
- v0.x | |
- v0.x-staging | |
push: | |
branches: | |
- v0.x | |
- v0.x-staging | |
jobs: | |
############################################################################## | |
# CODE QUALITY | |
############################################################################## | |
lint_code: | |
name: Check for lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Deno | |
uses: denoland/setup-deno@v1 | |
- name: Run Deno linter | |
run: deno lint | |
code_formatting: | |
name: Check code formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Deno | |
uses: denoland/setup-deno@v1 | |
- name: Run Deno formatter check | |
run: deno fmt --check | |
############################################################################## | |
# TESTS - INTEGRATION | |
############################################################################## | |
tests_unit: | |
name: Tests - Integration - Node | |
needs: [lint_code, code_formatting] | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
node-version: [18.x, 20.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Deno (for `deno` command) | |
uses: denoland/setup-deno@v1 | |
- name: Install Node (20.x) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- name: Install pnpm | |
run: | | |
npm install -g pnpm | |
- name: Install Node dependencies | |
run: | | |
pnpm install | |
- name: Run Tests | |
run: | | |
cd tests/integration/modules/aoconnect | |
pnpm install | |
cd - | |
cd tests/integration/standard/with-arweave-js | |
pnpm install | |
cd - | |
deno task test:unit --no-watch |