diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 84d07a7..7a8d22e 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -3,10 +3,16 @@ env: FORCE_COLOR: 1 on: push: + branches: + - master + - main + - develop + - stage pull_request: branches: - master - main + - stage jobs: test_linux: name: Ubuntu @@ -23,8 +29,10 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - run: npm ci - - run: npm test + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm test test_win: name: "Windows" runs-on: windows-latest @@ -40,8 +48,10 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - run: npm ci - - run: npm test + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm test tag: name: "Publishing release" if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' @@ -64,7 +74,7 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - run: npm ci + - run: npm install - name: Read version from package.json uses: culshaw/read-package-node-version-actions@v1 id: package-node-version