Skip to content

Commit

Permalink
meticulous gh action build
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Jan 27, 2025
1 parent 3641690 commit 76608c3
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions .github/workflows/meticulous.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,37 @@ jobs:
test:
name: Report diffs
runs-on: ubuntu-latest
# Only run if the label 'deploy-dev' is present
if: contains(github.event.pull_request.labels.*.name, 'deploy-dev')
# Only run if the label 'test' is present
if: contains(github.event.pull_request.labels.*.name, 'test')

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: "21"
cache: yarn

- name: Cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile --non-interactive
- name: Serve project
# We strongly recommend you serve the app with a non-development server.
# The sleep is often required to ensure your app is readily being served
# by the time the Meticulous tests start
run: |
nx build:serve fishing-map
sleep 5
- name: Run Meticulous tests
uses: alwaysmeticulous/report-diffs-action/cloud-compute@v1
with:
api-token: ${{ secrets.METICULOUS_API_TOKEN }}
# TODO grab the url from the preview PR
app-url: https://fishing-map-fishing-map-responsive-visualization-jzzp2ui3wq-uc.a.run.app
app-url: "http://localhost:3000/"

0 comments on commit 76608c3

Please sign in to comment.