Skip to content

Commit

Permalink
mock setup to get the ci actions passing
Browse files Browse the repository at this point in the history
  • Loading branch information
bearni95 committed May 17, 2024
1 parent e2aac64 commit 2e45ab6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/snaefell-ui--ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ jobs:
# and the Svelte check complains about not finding the exports from $env/static/public,
# which will be generated based on the .env file when running `svelte-kit sync`
- name: Copy .env.example to .env
working-directory: ./packages/taikoon-ui
working-directory: ./packages/snaefell-ui
run: cp .env.example .env

- name: Frontend build
working-directory: ./packages/taikoon-ui
working-directory: ./packages/snaefell-ui
run: pnpm build

- name: Svelte check
working-directory: ./packages/taikoon-ui
working-directory: ./packages/snaefell-ui
run: pnpm check

- name: Check formatting
working-directory: ./packages/taikoon-ui
working-directory: ./packages/snaefell-ui
run: pnpm lint

- name: Unit tests
env:
SKIP_ENV_VALIDATION: "true"
working-directory: ./packages/taikoon-ui
working-directory: ./packages/snaefell-ui
run: pnpm test:unit
14 changes: 7 additions & 7 deletions .github/workflows/snaefell-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ on:
branches-ignore:
- release-please-*
paths:
- "packages/taikoon-ui/**"
- "packages/snaefell-ui/**"
pull_request:
paths:
- "packages/taikoon-ui/**"
- "packages/snaefell-ui/**"

jobs:
build-and-test:
uses: ./.github/workflows/taikoon-ui--ci.yml
uses: ./.github/workflows/snaefell-ui--ci.yml

# Deployment name follow the pattern: deploy_<appname(taikoon-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)>
deploy_taikoon-ui_mainnet_preview:
# Deployment name follow the pattern: deploy_<appname(snaefell-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)>
deploy_snaefell-ui_mainnet_preview:
if: ${{ github.ref_name != 'main' }}
needs: build-and-test
uses: ./.github/workflows/repo--vercel-deploy.yml
Expand All @@ -27,8 +27,8 @@ jobs:
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}

deploy_taikoon-ui_mainnet_production:
if: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/taikoon-ui-') }}
deploy_snaefell-ui_mainnet_production:
if: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/snaefell-ui-') }}
needs: build-and-test
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
Expand Down
6 changes: 5 additions & 1 deletion packages/snaefell-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "echo 'Unimplemented'",
"check": "echo 'Unimplemented'",
"lint": "echo 'Unimplemented'",
"test:unit": "echo 'Unimplemented'"
},
"author": "",
"license": "ISC"
Expand Down

0 comments on commit 2e45ab6

Please sign in to comment.