From c6ac16a0e8fda40f726c5285a4d7a18be2ea48c7 Mon Sep 17 00:00:00 2001 From: hhow09 Date: Tue, 21 Jan 2025 22:06:52 +0100 Subject: [PATCH] ci: github ci test --- .github/workflows/ci.yaml | 27 +++++++++++++++++++++++++++ .nvmrc | 1 + 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 .nvmrc 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