From ac989dc923d07960acc77683fca5930465c5e3b3 Mon Sep 17 00:00:00 2001 From: Eddie Jaoude Date: Fri, 12 Jul 2024 19:14:12 +0100 Subject: [PATCH] feat: run lint and build on github actions --- .github/workflows/build.yml | 18 ++++++++++++++++++ .github/workflows/lint.yml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ef01e7a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build +on: + push: + branches: main + pull_request: + branches: main +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Install dependencies + run: npm ci + - name: Run build + run: npm run build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..ca23469 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,18 @@ +name: Linter +on: + push: + branches: main + pull_request: + branches: main +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Install dependencies + run: npm ci + - name: Run linter + run: npm run lint