From 27d6360e5892620e96fc1fb3521ce4323b2e572c Mon Sep 17 00:00:00 2001 From: Nichole Frey Date: Sat, 17 Feb 2024 19:35:18 -0500 Subject: [PATCH] set environment variables in github action workflow --- .github/workflows/workflow.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 34168a8..0e0fe6f 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -13,9 +13,17 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: "18.x" - cache: "yarn" + node-version: '18.x' + cache: 'yarn' - run: yarn install --immutable + - name: Use variables + run: | + echo "NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME : $NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME" + echo "NEXT_PUBLIC_SITE_URL: $NEXT_PUBLIC_SITE_URL" + env: + NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: ${{ vars.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME }} + NEXT_PUBLIC_SITE_URL: ${{ vars.NEXT_PUBLIC_SITE_URL }} + - run: yarn test - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4