From 217f59ae88c37816dd938e6d2a6d19be731822f7 Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Wed, 24 Apr 2024 17:27:02 +0800 Subject: [PATCH] chore: update test workflow --- .github/actions/test_build/action.yml | 19 +++++++++++++++++++ .github/workflows/coveralls.yml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/actions/test_build/action.yml diff --git a/.github/actions/test_build/action.yml b/.github/actions/test_build/action.yml new file mode 100644 index 00000000..c6b27601 --- /dev/null +++ b/.github/actions/test_build/action.yml @@ -0,0 +1,19 @@ +name: build +description: Build Docusaurus project +inputs: + NODE_ENV: + description: Node environment + required: false + default: staging + TRACKJS_TOKEN: + description: Trackjs Token + required: false +runs: + using: composite + steps: + - name: Building Docusaurus project + env: + NODE_ENV: ${{ inputs.NODE_ENV }} + TRACKJS_TOKEN: ${{ inputs.TRACKJS_TOKEN }} + run: npm run build -- --locale fr + shell: bash diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index d0f16ffd..4c56e6f3 100755 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -18,7 +18,7 @@ jobs: - name: Install dependencies uses: './.github/actions/npm_install_from_cache' - name: Build - uses: ./.github/actions/build + uses: ./.github/actions/test_build - name: Run Tests run: npm run test -- --collectCoverage - name: Coveralls