diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..815d5c7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,27 @@ +name: CI +on: + push: + branches: [ "master"] + paths-ignore: + - "README.md" + pull_request: + branches: [ "master" ] + +jobs: + test-build: + name: 🎉 Test and Build + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + - name: 📦 Install dependencies + run: npm ci + - name: Linter + run: npm run lint + - name: Test + run: npm test + \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..b427e2a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20.16.0 \ No newline at end of file