From 90327659242673bade7cd2e1703fc75633bf3425 Mon Sep 17 00:00:00 2001 From: Bruno Fukumori Date: Thu, 11 Jul 2024 01:48:56 -0300 Subject: [PATCH] feat: adicionar ci/cd --- .github/workflows/run-tests-on-push.yml | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/run-tests-on-push.yml diff --git a/.github/workflows/run-tests-on-push.yml b/.github/workflows/run-tests-on-push.yml new file mode 100644 index 0000000..6d75c5b --- /dev/null +++ b/.github/workflows/run-tests-on-push.yml @@ -0,0 +1,32 @@ +name: Run Tests on Push + +on: + push: + branches: + - main + - '**/feature/*' + - '**/bugfix/*' + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ['18.x', '20.x'] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test