diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index eb4d9d56e..f352c04b7 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,31 +1,24 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: Node.js CI - +name: The-Bocchette-2 Actions on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: + - main jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [14.x, 16.x, 18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} + - name: Checkout del repository + uses: actions/checkout@v2 + + - name: Setup di Node.js uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test + node-version: '14' + + - name: Installa dipendenze + run: npm install + + - name: Esegui i test + run: npm test