From cfb25084f337dd0f10dff800c1d92929de1c65b8 Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Tue, 19 Mar 2024 15:44:34 -0500 Subject: [PATCH 1/3] Add .env setup step to build.yml: addresses error by docker-compose-check hook. --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40946986..9b0386eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,7 +100,9 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install --upgrade --requirement requirements-test.txt - name: Set up pre-commit hook environments - run: pre-commit install-hooks + run: | + pre-commit install-hooks + cp dev.env.example .env - name: Run pre-commit on all files run: pre-commit run --all-files - name: Setup tmate debug session From 6f9c72705caefd92c0cc445fb0abeca45305d96c Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Wed, 20 Mar 2024 10:30:45 -0500 Subject: [PATCH 2/3] Create separate step for 'Create .env file' in lint job. --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b0386eb..7bc70807 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,9 +100,9 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install --upgrade --requirement requirements-test.txt - name: Set up pre-commit hook environments - run: | - pre-commit install-hooks - cp dev.env.example .env + run: pre-commit install-hooks + - name: Create .env file + run: cp dev.env.example .env - name: Run pre-commit on all files run: pre-commit run --all-files - name: Setup tmate debug session From 7dc434bccd7090e215c480e30c909a7751856923 Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Wed, 20 Mar 2024 14:17:33 -0500 Subject: [PATCH 3/3] Update name of step that creates .env file for clarity. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7bc70807..411d76c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,7 +101,7 @@ jobs: pip install --upgrade --requirement requirements-test.txt - name: Set up pre-commit hook environments run: pre-commit install-hooks - - name: Create .env file + - name: Create .env file needed by docker-compose-check pre-commit hook run: cp dev.env.example .env - name: Run pre-commit on all files run: pre-commit run --all-files