Skip to content

[Shock] - Added Jinja filter called 'pathRelativeToPage' to build URLs on top of page URL (Relates to #164) #67

[Shock] - Added Jinja filter called 'pathRelativeToPage' to build URLs on top of page URL (Relates to #164)

[Shock] - Added Jinja filter called 'pathRelativeToPage' to build URLs on top of page URL (Relates to #164) #67

Workflow file for this run

name: Run tests on every PR
on: [pull_request]
jobs:
analyze-static-shock:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/static_shock
steps:
# Checkout the repository
- uses: actions/checkout@v3
# Setup a Dart environment
- uses: dart-lang/setup-dart@v1
# Install Melos globally
- run: dart pub global activate melos
# Bootstrap Melos so each package uses the other local packages (instead of Pub)
- run: melos bootstrap
# Download all the packages that the app uses
- run: dart pub get
# Run Dart analysis
- run: dart analyze
- name: Check analysis exit code
run: echo $?
test-static-shock:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/static_shock
steps:
# Checkout the repository
- uses: actions/checkout@v3
# Setup a Dart environment
- uses: dart-lang/setup-dart@v1
# Install Melos globally
- run: dart pub global activate melos
# Bootstrap Melos so each package uses the other local packages (instead of Pub)
- run: melos bootstrap
# Download all the packages that the app uses
- run: dart pub get
# Run tests
- run: dart test
analyze-cli:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/static_shock_cli
steps:
# Checkout the repository
- uses: actions/checkout@v3
# Setup a Dart environment
- uses: dart-lang/setup-dart@v1
# Install Melos globally
- run: dart pub global activate melos
# Bootstrap Melos so each package uses the other local packages (instead of Pub)
- run: melos bootstrap
# Download all the packages that the app uses
- run: dart pub get
# Run Dart analysis
- run: dart analyze
- name: Check analysis exit code
run: echo $?
test-cli:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/static_shock_cli
steps:
# Checkout the repository
- uses: actions/checkout@v3
# Setup a Dart environment
- uses: dart-lang/setup-dart@v1
# Install Melos globally
- run: dart pub global activate melos
# Bootstrap Melos so each package uses the other local packages (instead of Pub)
- run: melos bootstrap
# Download all the packages that the app uses
- run: dart pub get
# Run tests
- run: dart test
analyze-docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/static_shock_docs
steps:
# Checkout the repository
- uses: actions/checkout@v3
# Setup a Dart environment
- uses: dart-lang/setup-dart@v1
# Install Melos globally
- run: dart pub global activate melos
# Bootstrap Melos so each package uses the other local packages (instead of Pub)
- run: melos bootstrap
# Download all the packages that the app uses
- run: dart pub get
# Run Dart analysis
- run: dart analyze
- name: Check analysis exit code
run: echo $?
test-docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/static_shock_docs
steps:
# Checkout the repository
- uses: actions/checkout@v3
# Setup a Dart environment
- uses: dart-lang/setup-dart@v1
# Install Melos globally
- run: dart pub global activate melos
# Bootstrap Melos so each package uses the other local packages (instead of Pub)
- run: melos bootstrap
# Download all the packages that the app uses
- run: dart pub get
# Run tests
- run: dart test