Skip to content

chore(ci): 🤖 add gitlab deployment test job #122

chore(ci): 🤖 add gitlab deployment test job

chore(ci): 🤖 add gitlab deployment test job #122

name: continuous integration
on:
- push
jobs:
lint_frontend:
runs-on: ubuntu-latest
env:
HEDERA_ACCOUNT_ID: ${{ secrets.HEDERA_ACCOUNT_ID }}
HEDERA_PRIVATE_KEY: ${{ secrets.HEDERA_PRIVATE_KEY }}
HEDERA_ENVIRONMENT: ${{ vars.HEDERA_ENVIRONMENT }}
PUBLIC_HASHCONNECT_PROJECT_ID: ${{ vars.PUBLIC_HASHCONNECT_PROJECT_ID }}
PUBLIC_DEPLOYMENT_CONTRACT_ID: ${{ vars.PUBLIC_DEPLOYMENT_CONTRACT_ID }}
PUBLIC_DEPLOYMENT_NFT_TOKEN_ID: ${{ vars.PUBLIC_DEPLOYMENT_NFT_TOKEN_ID }}
PUBLIC_IPFS_GATEWAY_BASE_URL: ${{ vars.PUBLIC_IPFS_GATEWAY_BASE_URL }}
PUBLIC_GATEWAY_URL: ${{ vars.PUBLIC_GATEWAY_URL }}
PINATA_GROUP_ID: ${{ secrets.PINATA_GROUP_ID }}
PINATA_JWT: ${{ secrets.PINATA_JWT }}
steps:
# setup
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "pnpm"
- run: pnpm install
# script
- run: pnpm -C frontend lint:eslint
- run: pnpm -C frontend lint:prettier
- run: pnpm -C frontend lint:svelte
build_frontend:
runs-on: ubuntu-latest
env:
HEDERA_ACCOUNT_ID: ${{ secrets.HEDERA_ACCOUNT_ID }}
HEDERA_PRIVATE_KEY: ${{ secrets.HEDERA_PRIVATE_KEY }}
HEDERA_ENVIRONMENT: ${{ vars.HEDERA_ENVIRONMENT }}
PUBLIC_HASHCONNECT_PROJECT_ID: ${{ vars.PUBLIC_HASHCONNECT_PROJECT_ID }}
PUBLIC_DEPLOYMENT_CONTRACT_ID: ${{ vars.PUBLIC_DEPLOYMENT_CONTRACT_ID }}
PUBLIC_DEPLOYMENT_NFT_TOKEN_ID: ${{ vars.PUBLIC_DEPLOYMENT_NFT_TOKEN_ID }}
PUBLIC_IPFS_GATEWAY_BASE_URL: ${{ vars.PUBLIC_IPFS_GATEWAY_BASE_URL }}
PUBLIC_GATEWAY_URL: ${{ vars.PUBLIC_GATEWAY_URL }}
PINATA_GROUP_ID: ${{ secrets.PINATA_GROUP_ID }}
PINATA_JWT: ${{ secrets.PINATA_JWT }}
steps:
# setup
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "pnpm"
- run: pnpm install
# script
- run: pnpm -C frontend build
test_gitlab_deployment:
steps:
- curl -X POST \

Check failure on line 65 in .github/workflows/continuousIntgration.yml

View workflow run for this annotation

GitHub Actions / continuous integration

Invalid workflow file

The workflow is not valid. .github/workflows/continuousIntgration.yml (Line: 65, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GITLAB_DEPLOYMENT_TRIGGER_TOKEN .github/workflows/continuousIntgration.yml (Line: 65, Col: 9): Unexpected value 'curl -X POST \ --fail \ -F token="${{ secrets.GITLAB_DEPLOYMENT_TRIGGER_TOKEN }}" \ -F "ref=main" \ -F "variables[TEST_VARIABLE]=hello from github!" \ https://gitlab.appswithlove.net/api/v4/projects/3937/trigger/pipeline'
--fail \
-F token="${{ secrets.GITLAB_DEPLOYMENT_TRIGGER_TOKEN }}" \
-F "ref=main" \
-F "variables[TEST_VARIABLE]=hello from github!" \
https://gitlab.appswithlove.net/api/v4/projects/3937/trigger/pipeline