Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions .github/workflows/asset-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v4

- run: yarn && yarn setup
- run: yarn build
- run: yarn dlx teraslice-cli -v
- run: yarn dlx teraslice-cli assets build
- run: pnpm install && pnpm run setup
- run: pnpm build
- run: pnpm dlx teraslice-cli -v
- run: pnpm dlx teraslice-cli assets build
- run: ls -l ./build/
- run: sha256sum ./build/*

Expand All @@ -91,8 +93,15 @@ jobs:
# NOTE: Hard Coded Node Version
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
uses: pnpm/action-setup@v4

- run: yarn && yarn setup
- run: pnpm install && pnpm run setup

- name: Verify pnpm authentication
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm whoami

- run: ./scripts/publish.sh
env:
Expand Down Expand Up @@ -173,10 +182,11 @@ jobs:
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Build documentation
run: yarn && ./scripts/build-documentation.sh # output in website/build
run: pnpm install && ./scripts/build-documentation.sh # output in website/build
- name: Check Output
run: find ./website/build
- name: Upload artifact
Expand Down
30 changes: 18 additions & 12 deletions .github/workflows/asset-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v4
# we login to docker to avoid docker pull limit rates
# secrets are now duplicated for Actions and Dependabot
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: yarn && yarn setup
- run: yarn lint
- run: pnpm install && pnpm run setup
- run: pnpm lint
- name: Create Docker Image List
run: |
yarn docker:listImages
pnpm docker:listImages
cat ./images/image-list.txt
- name: Restore Docker image cache
id: docker-cache
Expand All @@ -48,7 +50,7 @@ jobs:
restore-keys: |
docker-images-${{ hashFiles('./images/image-list.txt') }}-
docker-images-
- run: yarn test:all
- run: pnpm test:all
- name: Get Commit Short SHA
id: get-short-sha
run: |
Expand All @@ -58,8 +60,8 @@ jobs:
run: |
jq '.version += "-dev.${{ steps.get-short-sha.outputs.COMMIT_SHORT_SHA }}"' asset/asset.json > tempAsset.json && mv tempAsset.json asset/asset.json
cat asset/asset.json
- run: yarn dlx teraslice-cli -v
- run: yarn dlx teraslice-cli assets build
- run: pnpm dlx teraslice-cli -v
- run: pnpm dlx teraslice-cli assets build
- run: ls -l build/
- name: Archive test build artifacts
uses: actions/upload-artifact@v4
Expand All @@ -83,12 +85,14 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: yarn && yarn setup
- run: yarn lint
- name: Install pnpm
uses: pnpm/action-setup@v4
- run: pnpm install && pnpm run setup
- run: pnpm lint
# TODO: Ideally we'd be able to at least run unit tests that don't require docker.
#- run: yarn test:all
- run: yarn dlx teraslice-cli -v
- run: yarn dlx teraslice-cli assets build
#- run: pnpm test:all
- run: pnpm dlx teraslice-cli -v
- run: pnpm dlx teraslice-cli assets build
- run: ls -l build/

check-for-website:
Expand Down Expand Up @@ -119,10 +123,12 @@ jobs:
with:
# NOTE: Hard Coded Node Version
node-version: '22'
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Build documentation and Check Output
if: needs.check-for-website.outputs.website_exists == 'true'
run: |
yarn
pnpm install
./scripts/build-documentation.sh
find ./website/build

Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/cache-asset-bundles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'
cache: 'pnpm'

- name: Install and build packages
run: yarn && yarn setup
run: pnpm install && pnpm run setup

- name: Build e2e directory
run: yarn build
run: pnpm build
working-directory: ./e2e

- name: Generate asset bundle list
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn download-assets generate-list
run: pnpm download-assets generate-list
working-directory: ./e2e

- name: Check for asset bundle cache
Expand All @@ -41,7 +44,7 @@ jobs:
if: ${{steps.asset-bundles-cache.outputs.cache-hit != 'true'}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn download-assets download
run: pnpm download-assets download
working-directory: ./e2e

- name: Update asset bundles cache if no cache hit
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/cache-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'
cache: 'pnpm'

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -24,12 +27,12 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Install and build packages
run: yarn && yarn setup
run: pnpm install && pnpm run setup

- name: Create Docker Image List
id: image-list
run: |
yarn docker:listImages
pnpm docker:listImages
cat ./images/image-list.txt

- name: Check for Docker image cache
Expand All @@ -42,8 +45,8 @@ jobs:
docker-images-${{ hashFiles('./images/image-list.txt') }}-

- name: Pull and save Docker images if no cache hit
if: ${{steps.docker-cache.outputs.cache-hit == ''}}
run: yarn docker:saveImages
if: ${{steps.docker-cache.outputs.cache-hit == ''}}
run: pnpm docker:saveImages

- name: Update Docker image cache if no cache hit
if: ${{steps.docker-cache.outputs.cache-hit == ''}}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/check-docker-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Check docker.hub pull limit
env:
USER: ${{ secrets.DOCKER_USERNAME }}
PASS: ${{ secrets.DOCKER_PASSWORD }}
run: yarn && yarn docker:limit
run: pnpm install && pnpm docker:limit
14 changes: 9 additions & 5 deletions .github/workflows/prerelease-asset-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v4

- run: yarn && yarn setup
- run: yarn build
- run: yarn dlx teraslice-cli@prerelease -v
- run: yarn dlx teraslice-cli@prerelease assets build
- run: pnpm install && pnpm run setup
- run: pnpm build
- run: pnpm dlx teraslice-cli@prerelease -v
- run: pnpm dlx teraslice-cli@prerelease assets build
- run: ls -l ./build/
- run: sha256sum ./build/*

Expand All @@ -97,8 +99,10 @@ jobs:
# NOTE: Hard Coded Node Version
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
uses: pnpm/action-setup@v4

- run: yarn && yarn setup
- run: pnpm install && pnpm run setup

- run: ./scripts/publish.sh --tag prerelease
env:
Expand Down
30 changes: 18 additions & 12 deletions .github/workflows/prerelease-asset-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v4
# we login to docker to avoid docker pull limit rates
# secrets are now duplicated for Actions and Dependabot
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: yarn && yarn setup
- run: yarn lint
- run: pnpm install && pnpm run setup
- run: pnpm lint
- name: Create Docker Image List
run: |
yarn docker:listImages
pnpm docker:listImages
cat ./images/image-list.txt
- name: Restore Docker image cache
id: docker-cache
Expand All @@ -48,7 +50,7 @@ jobs:
restore-keys: |
docker-images-${{ hashFiles('./images/image-list.txt') }}-
docker-images-
- run: yarn test:all
- run: pnpm test:all
- name: Get Commit Short SHA
id: get-short-sha
run: |
Expand All @@ -58,8 +60,8 @@ jobs:
run: |
jq '.version += "-dev.${{ steps.get-short-sha.outputs.COMMIT_SHORT_SHA }}"' asset/asset.json > tempAsset.json && mv tempAsset.json asset/asset.json
cat asset/asset.json
- run: yarn dlx teraslice-cli@prerelease -v
- run: yarn dlx teraslice-cli@prerelease assets build
- run: pnpm dlx teraslice-cli@prerelease -v
- run: pnpm dlx teraslice-cli@prerelease assets build
- run: ls -l build/
- name: Archive test build artifacts
uses: actions/upload-artifact@v4
Expand All @@ -83,12 +85,14 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: yarn && yarn setup
- run: yarn lint
- name: Install pnpm
uses: pnpm/action-setup@v4
- run: pnpm install && pnpm run setup
- run: pnpm lint
# TODO: Ideally we'd be able to at least run unit tests that don't require docker.
#- run: yarn test:all
- run: yarn dlx teraslice-cli@prerelease -v
- run: yarn dlx teraslice-cli@prerelease assets build
#- run: pnpm test:all
- run: pnpm dlx teraslice-cli@prerelease -v
- run: pnpm dlx teraslice-cli@prerelease assets build
- run: ls -l build/

check-for-website:
Expand Down Expand Up @@ -119,10 +123,12 @@ jobs:
with:
# NOTE: Hard Coded Node Version
node-version: '22'
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Build documentation and Check Output
if: needs.check-for-website.outputs.website_exists == 'true'
run: |
yarn
pnpm install
./scripts/build-documentation.sh
find ./website/build

Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/refresh-asset-bundles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,26 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'
cache: 'pnpm'

- name: Install and build packages
run: yarn && yarn setup
run: pnpm install && pnpm run setup

- name: Build e2e directory
run: yarn build
run: pnpm build
working-directory: ./e2e

- name: Generate asset bundle list
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn download-assets generate-list
run: pnpm download-assets generate-list
working-directory: ./e2e

- name: Check for asset bundles cache
Expand Down Expand Up @@ -65,7 +68,7 @@ jobs:
- name: Pull and save asset bundles
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn download-assets download
run: pnpm download-assets download
working-directory: ./e2e

- name: Update asset bundle cache
Expand Down
Loading