From 489b8f166825bf8a53c73671b0e0c04fe7eb271f Mon Sep 17 00:00:00 2001 From: Julio Verne <55258516+julio-ufpb@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:54:42 -0300 Subject: [PATCH 1/6] change: create build-check workflow --- .github/workflows/build-chack.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build-chack.yml diff --git a/.github/workflows/build-chack.yml b/.github/workflows/build-chack.yml new file mode 100644 index 00000000..43c1cd27 --- /dev/null +++ b/.github/workflows/build-chack.yml @@ -0,0 +1,32 @@ +name: Build Check + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Set NODE_ENV to production + run: echo "NODE_ENV=production" >> $GITHUB_ENV + + - name: Install dependencies + run: npm install --include=dev + + - name: Build + run: npm run build + + - name: Check for build success + run: | + if [ $? -ne 0 ]; then + echo "Error: 'npm run build' failed" + exit 1 + fi From 0a1431c55db4c5f978420e7f372af09df10a3f16 Mon Sep 17 00:00:00 2001 From: Julio Verne <55258516+julio-ufpb@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:02:34 -0300 Subject: [PATCH 2/6] change: create build-check workflow --- .github/workflows/build-chack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-chack.yml b/.github/workflows/build-chack.yml index 43c1cd27..28e8f605 100644 --- a/.github/workflows/build-chack.yml +++ b/.github/workflows/build-chack.yml @@ -19,7 +19,7 @@ jobs: run: echo "NODE_ENV=production" >> $GITHUB_ENV - name: Install dependencies - run: npm install --include=dev + run: npm install - name: Build run: npm run build From e8121878ec5099e9325896654e5159bbf6fbcbe0 Mon Sep 17 00:00:00 2001 From: Julio Verne <55258516+julio-ufpb@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:06:18 -0300 Subject: [PATCH 3/6] change: create build-check workflow --- .github/workflows/build-chack.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-chack.yml b/.github/workflows/build-chack.yml index 28e8f605..a28301e1 100644 --- a/.github/workflows/build-chack.yml +++ b/.github/workflows/build-chack.yml @@ -6,20 +6,24 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [ 14.x ] + steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Node.js + - name: Set up Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: - node-version: '14' + node-version: ${{ matrix.node-version }} - name: Set NODE_ENV to production run: echo "NODE_ENV=production" >> $GITHUB_ENV - name: Install dependencies - run: npm install + run: npm install --include=dev - name: Build run: npm run build From 2c8994195663905d0ca1aaa80c35886185672a5b Mon Sep 17 00:00:00 2001 From: Julio Verne <55258516+julio-ufpb@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:32:30 -0300 Subject: [PATCH 4/6] change: create build-check workflow --- .github/workflows/build-chack.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-chack.yml b/.github/workflows/build-chack.yml index a28301e1..120317e9 100644 --- a/.github/workflows/build-chack.yml +++ b/.github/workflows/build-chack.yml @@ -6,25 +6,25 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [ 14.x ] - steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Node.js ${{ matrix.node-version }} + - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version }} - - - name: Set NODE_ENV to production - run: echo "NODE_ENV=production" >> $GITHUB_ENV + node-version: '14' - name: Install dependencies run: npm install --include=dev + - name: Install dependencies + run: npm i --save-dev @types/jest + + + - name: Set NODE_ENV to production + run: echo "NODE_ENV=production" >> $GITHUB_ENV + - name: Build run: npm run build From bc97b8d07f653705d91c4f414d4f97d17c8b02dd Mon Sep 17 00:00:00 2001 From: Julio Verne <55258516+julio-ufpb@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:34:46 -0300 Subject: [PATCH 5/6] change: create build-check workflow --- .github/workflows/build-chack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-chack.yml b/.github/workflows/build-chack.yml index 120317e9..207e26c1 100644 --- a/.github/workflows/build-chack.yml +++ b/.github/workflows/build-chack.yml @@ -1,6 +1,6 @@ name: Build Check -on: [push, pull_request] +on: [pull_request] jobs: build: @@ -20,7 +20,7 @@ jobs: - name: Install dependencies run: npm i --save-dev @types/jest - + - name: Set NODE_ENV to production run: echo "NODE_ENV=production" >> $GITHUB_ENV From 26850a24a7d5bf670aff0b54dfbb524234fed5d3 Mon Sep 17 00:00:00 2001 From: Julio Verne <55258516+julio-ufpb@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:39:47 -0300 Subject: [PATCH 6/6] change: create build-check workflow --- .github/workflows/build-chack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-chack.yml b/.github/workflows/build-chack.yml index 207e26c1..7183d979 100644 --- a/.github/workflows/build-chack.yml +++ b/.github/workflows/build-chack.yml @@ -1,6 +1,6 @@ name: Build Check -on: [pull_request] +on: [push, pull_request] jobs: build: