From 9b1b1f3713489059e0a2cc90db3b11ac48130765 Mon Sep 17 00:00:00 2001 From: Tim Slager <41442518+Timtendo12@users.noreply.github.com> Date: Wed, 22 Nov 2023 13:06:50 +0100 Subject: [PATCH 1/3] Create main.yml --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ac68a86 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Build Laravel + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + +jobs: + laravel-tests: + + runs-on: ubuntu-latest + + steps: + - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e + with: + php-version: '8.1' + - uses: actions/checkout@v3 + - name: Copy .env + run: php -r "file_exists('.env') || copy('.env.example', '.env');" + - name: Install Dependencies + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Install NPM Packages + run: npm install + - name: Build NPM + run: npm run build From d7a26d510c916441eee633f348d017d6408b5683 Mon Sep 17 00:00:00 2001 From: Tim Slager <41442518+Timtendo12@users.noreply.github.com> Date: Wed, 22 Nov 2023 13:12:11 +0100 Subject: [PATCH 2/3] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac68a86..94eaa90 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Build Laravel +name: Build Laravel and NPM Packages on: push: @@ -7,7 +7,7 @@ on: branches: [ "dev" ] jobs: - laravel-tests: + biblio-build: runs-on: ubuntu-latest From 7eb85c0487f016f2217e7b52c3118760899aa8cd Mon Sep 17 00:00:00 2001 From: Tim Slager <41442518+Timtendo12@users.noreply.github.com> Date: Wed, 22 Nov 2023 13:15:13 +0100 Subject: [PATCH 3/3] Added working directory --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 94eaa90..2b00208 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,13 @@ jobs: - uses: actions/checkout@v3 - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" + working-directory: "./src/" - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + working-directory: "./src/" - name: Install NPM Packages run: npm install + working-directory: "./src/" - name: Build NPM run: npm run build + working-directory: "./src/"