From 263794798b73b13269e0e6018abdcf6ded22607a Mon Sep 17 00:00:00 2001 From: Codiku <111140836+codiku-dev@users.noreply.github.com> Date: Tue, 13 Feb 2024 23:17:08 +0100 Subject: [PATCH] wip --- .github/workflows/github-actions-demo.yml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..3c6aebf --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,24 @@ +name: Build and Test React Application + +on: + push: + branches: [dev, main] + pull_request: + branches: [dev, main] + +jobs: + build_test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: run test + run: npm run test:unit