Skip to content

Commit

Permalink
Merge branch 'develop' into renovate/configure
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingallday authored Aug 15, 2024
2 parents 9171c01 + 22beb71 commit 19638a8
Show file tree
Hide file tree
Showing 910 changed files with 214,225 additions and 22,971 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: UI Libraries
on:
push:
paths:
- '.github/workflows/components.yml'
- 'packages/ripple-storybook/**'
- 'packages/ripple-ui-core/**'
- 'packages/ripple-ui-forms/**'
Expand All @@ -11,13 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8.6.2
version: 9.0.6
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build Storybook
Expand All @@ -36,21 +37,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
with:
version: 8.6.2
version: 9.0.6
run_install: true
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Cypress component tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
working-directory: packages/ripple-ui-core
install: false
Expand All @@ -59,22 +60,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
with:
version: 8.6.2
version: 9.0.6
run_install: true
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'

- name: Cypress component tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
working-directory: packages/ripple-ui-forms
install: false
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Docs
on:
push:
paths:
- '.github/workflows/docs.yml'
- 'docs'
- 'packages/ripple-ui-core/**'
- 'packages/ripple-ui-forms/**'
Expand All @@ -10,16 +11,16 @@ jobs:
Docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8.6.2
version: 9.0.6
run_install: false
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
env:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8.6.2
version: 9.0.6
run_install: false
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run test:unit
32 changes: 17 additions & 15 deletions .github/workflows/nuxt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Nuxt
on:
push:
paths:
- '.github/workflows/nuxt.yml'
- 'examples/nuxt-app/**'
- 'packages/**'
- 'pnpm-lock.yaml'
Expand All @@ -10,16 +11,16 @@ jobs:
TestNuxt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8.6.2
version: 9.0.6
run_install: false
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
env:
Expand All @@ -35,35 +36,36 @@ jobs:

- run: npm install ./packages/nuxt-ripple-cli --global
# Run lighthouse test against nuxt-app example
- name: Run lighthouse baseline test on nuxt-app
run: pnpm -F nuxt-app lighthouse:ci
# TODO Turn lighthouse back on after unlighthouse is patched
# - name: Run lighthouse baseline test on nuxt-app
# run: pnpm -F nuxt-app lighthouse:ci

# run Cypress tests in example nuxt-app, record to Cypress cloud
Integration:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8.6.2
version: 9.0.6

- name: Install Dependencies
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: pnpm install --frozen-lockfile

- name: Cypress Integration (e2e) tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
TZ: 'Australia/Melbourne'
NUXT_PUBLIC_TIDE_BASE_URL: 'https://develop.content.reference.sdp.vic.gov.au/'
NUXT_PUBLIC_TIDE_SITE: '8888'
NUXT_PUBLIC_TIDE_BASE_URL: 'https://test.base.url/'
NUXT_PUBLIC_TIDE_SITE: 'TEST_SITE'
NUXT_PUBLIC_API_URL: 'http://localhost:3001'
NUXT_PUBLIC_TIDE_APP_SEARCH_ENGINE_NAME: a83890f7a31dea14e1ae83c6f0afacca-appsearch-index-default-node
NUXT_PUBLIC_TIDE_APP_SEARCH_ENGINE_NAME: 'TEST_ENGINE'
API_PORT: '3001'
LOG_LEVEL: 'debug'
# DEBUG: '@cypress/github-action'
Expand All @@ -73,4 +75,4 @@ jobs:
install: false
build: pnpm build
start: pnpm start
wait-on: 'http://localhost:3000/api/tide/site?id=8888'
wait-on: 'http://localhost:3000/assets/fonts/VIC-Regular.woff2'
24 changes: 6 additions & 18 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,28 @@ name: Publish Canary
on:
push:
branches:
- develop
- release/alpha-**
- release/*
jobs:
Canary:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8.6.2
version: 9.0.6
run_install: false
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
registry-url: 'https://npm.pkg.github.com/'
node-version: 18
node-version: 20
cache: 'pnpm'
scope: '@dpc-sdp'
- name: Install Dependencies
Expand All @@ -40,14 +39,3 @@ jobs:
git config --global user.name "SDP Deploy"
pnpm config set access public
pnpm release:publish-next --yes
Update_Reference:
runs-on: ubuntu-latest
needs: Canary
steps:
- name: Kick off new pipeline to update reference site
run: |
curl --location --request POST 'https://circleci.com/api/v2/project/github/dpc-sdp/reference-sdp-vic-gov-au/pipeline' \
--header 'Content-Type: application/json' \
--header "Circle-Token: ${{ secrets.CIRCLECI_API_TOKEN }}" \
--data '{"branch": "v2","parameters": {"update": true}}'
16 changes: 7 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
name: Publish

on:
push:
branches:
- main
- test-release
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8.6.2
version: 9.0.6
run_install: false
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
registry-url: 'https://npm.pkg.github.com/'
node-version: 18
node-version: 20
cache: 'pnpm'
scope: '@dpc-sdp'
- name: Install Dependencies
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/studio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: studio-nuxt-build
run-name: studio nuxt build

on:
# Runs on pushes targeting the default branch
push:
branches:
- 'develop'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Add write workflow permissions
permissions:
contents: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
# Build job
build-and-deploy:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: docs

strategy:
matrix:
os: [ubuntu-latest]
node: [18]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Identify package manager
id: pkgman
run: |
cache=`[ -f "docs/pnpm-lock.yaml" ] && echo "pnpm" || ([ -f "docs/package-lock.json" ] && echo "npm" || ([ -f "docs/yarn.lock" ] && echo "yarn" || echo ""))`
package_manager=`[ ! -z "$cache" ] && echo "$cache" || echo "pnpm"`
echo "cache=$cache" >> $GITHUB_OUTPUT
echo "package_manager=$package_manager" >> $GITHUB_OUTPUT
- uses: pnpm/[email protected]
if: ${{ steps.pkgman.outputs.package_manager == 'pnpm' }}
name: Install pnpm
id: pnpm-install
with:
version: 9.0.6

- uses: actions/setup-node@v4
with:
version: ${{ matrix.node }}
cache: ${{ steps.pkgman.outputs.cache }}

- name: Install dependencies
run: ${{ steps.pkgman.outputs.package_manager }} install

- name: Install @nuxthq/studio
run: ${{ steps.pkgman.outputs.package_manager }} add -D @nuxthq/studio

- name: Create .nuxtrc
run: echo '\nautoImport=true\nmodules[]=@nuxthq/studio' >> .nuxtrc

- name: Generate
run: npx nuxi generate
env:
NUXT_PUBLIC_STUDIO_API_URL: https://api.nuxt.studio
NUXT_PUBLIC_STUDIO_TOKENS: 7ae2515146ef474b6daa2184d4cdf98a00e724791e002e791a928ee41fe5e267

- name: Add .nojekyll file
run: touch .output/public/.nojekyll

# Deployment job
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/.output/public
Loading

0 comments on commit 19638a8

Please sign in to comment.