From d8b80a35e0ecb180446fb622390ea0bb904ea93a Mon Sep 17 00:00:00 2001 From: Lance Tan <ltan0521@gmail.com> Date: Tue, 7 Nov 2023 22:55:50 -0800 Subject: [PATCH] Add build pipeline for frontend --- .github/workflows/frontend-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/frontend-ci.yml diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml new file mode 100644 index 0000000..5bfb225 --- /dev/null +++ b/.github/workflows/frontend-ci.yml @@ -0,0 +1,26 @@ +name: Build Pipeline for Node and React + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + - run: npm run lint \ No newline at end of file