mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 09:01:39 -05:00
Move circleci CI to github
This commit is contained in:
parent
89a7e613e0
commit
d83bb4c4e6
2 changed files with 28 additions and 42 deletions
|
@ -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
|
|
28
.github/workflows/lint.yml
vendored
Normal file
28
.github/workflows/lint.yml
vendored
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue