From 8e5d18951c9f73f9e2d77bc24db2ad2e79209ddc Mon Sep 17 00:00:00 2001 From: Alit Indrawan Date: Thu, 5 Oct 2023 04:03:02 +0800 Subject: [PATCH 1/2] feat: add github workflow --- .github/workflows/github-ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/github-ci.yaml diff --git a/.github/workflows/github-ci.yaml b/.github/workflows/github-ci.yaml new file mode 100644 index 0000000..6d993b9 --- /dev/null +++ b/.github/workflows/github-ci.yaml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '16.x' + + - name: Install yarn + run: npm i --global yarn + + - name: Install npm packages + run: yarn install + + - name: Build assets + run: yarn build + + - name: Run test + run: yarn test -- --watchAll=false From b0cd9e05c1aa7d07402c5858098b9e70d2a88987 Mon Sep 17 00:00:00 2001 From: Alit Indrawan Date: Thu, 5 Oct 2023 04:10:58 +0800 Subject: [PATCH 2/2] feat: add github workflow --- .github/workflows/github-ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yaml b/.github/workflows/github-ci.yaml index 6d993b9..fdc4a8b 100644 --- a/.github/workflows/github-ci.yaml +++ b/.github/workflows/github-ci.yaml @@ -15,7 +15,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '16.x' + node-version: '18.x' - name: Install yarn run: npm i --global yarn