[Shock] - Deprecate RedirectsPlugin and move it into LinksPlugin (Resolves #204) #92
Workflow file for this run
This file contains hidden or 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: Run tests on every PR | |
| on: [pull_request] | |
| jobs: | |
| build_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 | |
| # Download all the packages that the app uses | |
| - run: dart pub get | |
| # Build the static site | |
| - run: dart run bin/static_shock_docs.dart ci | |
| env: | |
| GHUB_DOC_WEBSITE_TOKEN: ${{ vars.GHUB_DOC_WEBSITE_TOKEN }} | |
| STATIC_SHOCK_ALGOLIA_APP_ID: ${{ vars.STATIC_SHOCK_ALGOLIA_APP_ID }} | |
| STATIC_SHOCK_ALGOLIA_API_KEY: ${{ vars.STATIC_SHOCK_ALGOLIA_API_KEY }} | |
| 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 |