diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..94691b9 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,36 @@ +name: Node.js CI + +on: + push: + branches: [ "main" , "dev" ] + pull_request: + branches: [ "main" , "dev"] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ 16.x ] + pnpm-version: [ 8.0.0 ] + name: Use Node.js ${{ matrix.node-version }} + steps: + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node enviroment + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Setup Pnpm + uses: pnpm/action-setup@v2 + with: + version: ${{matrix.pnpm-version}} + + - name: Install Pnpm + run: pnpm install +