diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index bf804945..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,42 +0,0 @@ -version: 2.1 -commands: - commoncmd: - steps: - - checkout - - restore_cache: - keys: - - dependency-cache-{{ checksum "package.json" }} - - run: yarn install --frozen-lockfile - - save_cache: - key: dependency-cache-{{ checksum "package.json" }} - paths: - - ./node_modules -jobs: - lint: - docker: - - image: circleci/node:latest - steps: - - run: sudo apt update - - run: sudo apt install -qq shellcheck - - commoncmd - - run: bash -c './ci/lint.sh' - unit: - docker: - - image: circleci/node:latest - steps: - - commoncmd - - run: bash -c './ci/unit.sh' - mozilla: - docker: - - image: circleci/node:latest - steps: - - commoncmd - - run: bash -c 'ci/mozilla.sh' - -workflows: - version: 2 - build_test_lint: - jobs: - - lint - - mozilla - - unit diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..0f9c188a --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: lint +on: + push: + branches: + - 'master' + paths-ignore: + - '/readme.md' + pull_request: + branches: + - '*' + paths-ignore: + - '/readme.md' + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + step: [lint, unit, mozilla] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup + run: yarn install + - name: ${{ matrix.step }} + env: + STEP: ${{ matrix.step }} + run: bash -c ./ci/$STEP.sh