diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100755 index 78c4e41c..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,38 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: circleci/node - steps: - # Checkout repository - - checkout - - # Restore cache - - restore_cache: - key: yarn-cache-{{ checksum "yarn.lock" }} - - # Install dependencies - - run: - name: Install Dependencies - command: NODE_ENV=dev yarn - - # Keep cache - - save_cache: - key: yarn-cache-{{ checksum "yarn.lock" }} - paths: - - "node_modules" - - # Lint - - run: - name: Lint - command: yarn lint - - # Tests - - run: - name: Tests - command: yarn jest - - # Coverage - - run: - name: Coverage - command: yarn codecov diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..22e309b5 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,24 @@ +name: Lint + +on: [push, pull_request] + +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 12 + - run: yarn --frozen-lockfile + + - name: Commitlint + uses: wagoid/commitlint-github-action@v2 + + - name: Eslint + run: yarn lint diff --git a/test/module.test.js b/test/module.test.js index 6ecd6ceb..7f053ef4 100644 --- a/test/module.test.js +++ b/test/module.test.js @@ -13,7 +13,6 @@ describe('module', () => { test('render', async () => { const html = await get('/') - console.log(html) expect(html).toContain('page') }) })