From 63375a94a9245f23ef0646d96ea321465e403517 Mon Sep 17 00:00:00 2001 From: Angel Lopez Pol <59091763+angel1254mc@users.noreply.github.com> Date: Thu, 12 Oct 2023 17:17:50 -0400 Subject: [PATCH] Create `test` and `lint` Workflows (#8) * create test and lint workflows * use setup-node w/ LTS version, use clean install * fix missing newline * checkout repo before node setup * remove extra spaces from lint workflow end --- .github/workflows/lint.workflow.yml | 24 ++++++++++++++++++++++++ .github/workflows/test.workflow.yml | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/lint.workflow.yml create mode 100644 .github/workflows/test.workflow.yml diff --git a/.github/workflows/lint.workflow.yml b/.github/workflows/lint.workflow.yml new file mode 100644 index 0000000..0e99769 --- /dev/null +++ b/.github/workflows/lint.workflow.yml @@ -0,0 +1,24 @@ +on: + push: + branches-ignore: + - master + - gh-pages + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 18.x + + - name: Install dependencies + run: npm ci + + - name: Run lint + run: npm run lint diff --git a/.github/workflows/test.workflow.yml b/.github/workflows/test.workflow.yml new file mode 100644 index 0000000..a2aee6f --- /dev/null +++ b/.github/workflows/test.workflow.yml @@ -0,0 +1,24 @@ +on: + push: + branches-ignore: + - master + - gh-pages + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 18.x + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm run test