From bde259abc15b983ba33c5b4d256f5329bfa2eb73 Mon Sep 17 00:00:00 2001 From: Vasily Martynov Date: Fri, 11 Oct 2024 23:01:57 +1300 Subject: [PATCH] Add pipeline --- .github/workflows/nodejs.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/nodejs.yaml diff --git a/.github/workflows/nodejs.yaml b/.github/workflows/nodejs.yaml new file mode 100644 index 0000000..abb86c7 --- /dev/null +++ b/.github/workflows/nodejs.yaml @@ -0,0 +1,23 @@ +name: Node.js CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: [20] + name: Node ${{ matrix.node }} sample + steps: + - uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm ci + - run: npm run test