Make database dependent commands lazy #3809
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Assets" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- "2.**" | |
permissions: | |
contents: read | |
jobs: | |
js: | |
name: "Building assets" | |
runs-on: "ubuntu-20.04" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
- name: "Install Node" | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: "Install dependencies with Yarn" | |
run: "yarn install" | |
- name: "Build dev assets" | |
run: "yarn run build:dev" | |
- name: "Build prod assets" | |
run: "yarn run build:prod" | |
- name: "Validate no change were created" | |
run: | | |
GITDIFF=`git diff` | |
if [ "$GITDIFF" == "" ]; then | |
exit 0 | |
else | |
git diff | |
exit 1 | |
fi |