Skip to content

Commit

Permalink
fix: remove build job
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal committed Sep 20, 2023
1 parent 84128cb commit deb0482
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Build Check

on:
workflow_dispatch:
inputs:
fail-on-error:
description: 'Fail on error'
required: false
default: true
type: boolean

workflow_call:
inputs:
fail-on-error:
Expand Down Expand Up @@ -38,9 +46,9 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
# - if: ${{steps.dev-cache.outputs.cache-hit != 'true'}}
# name: Install Dependencies
# run: yarn install
- if: ${{steps.dev-cache.outputs.cache-hit != 'true'}}
name: Install Dependencies
run: yarn install

- name: Create production ENV
env:
Expand All @@ -55,7 +63,6 @@ jobs:

run: |
touch .env.production
echo "${{ vars.GATSBY_API_URL }}"
echo "GATSBY_FIREBASE_API_KEY=${GATSBY_FIREBASE_API_KEY}"
echo "GATSBY_FIREBASE_AUTH_DOMAIN=$GATSBY_FIREBASE_AUTH_DOMAIN"
echo "GATSBY_FIREBASE_PROJECT_ID=$GATSBY_FIREBASE_PROJECT_ID"
Expand All @@ -64,10 +71,8 @@ jobs:
echo "GATSBY_FIREBASE_APP_ID=$GATSBY_FIREBASE_APP_ID"
echo "GATSBY_FIREBASE_MEASUREMENT_ID=$GATSBY_FIREBASE_MEASUREMENT_ID"
echo "GATSBY_API_URL=$GATSBY_API_URL"
echo "repository variable : ${{ vars.REPOSITORY_VARIABLE }}"
cat .env.production
# - name: Build Check
# run: yarn build
# continue-on-error: ${{ !inputs.fail-on-error }}
- name: Build Check
run: yarn build
continue-on-error: ${{ !inputs.fail-on-error }}

13 changes: 7 additions & 6 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ on:
types: [opened, synchronize, reopened, edited, ready_for_review]

jobs:
build:
uses: ./.github/workflows/build.yml
with:
fail-on-error: true
# Currently, not needed as netlify is used for deployment
# build:
# uses: ./.github/workflows/build.yml
# with:
# fail-on-error: true

prettier:
needs: build
# needs: build
uses: ./.github/workflows/prettier.yml
with:
fail-on-error: true

eslint:
needs: build
# needs: build
uses: ./.github/workflows/eslint.yml
with:
fail-on-error: true

0 comments on commit deb0482

Please sign in to comment.