From e8f8ddc80cd4672a0e78a43893803806c4d8419b Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sat, 5 Sep 2020 12:38:02 +0800 Subject: [PATCH] CI: consolidate check actions --- .github/workflows/check-source-formatting.yml | 27 ------------------- .github/workflows/check-types.yml | 27 ------------------- .../{check-compiled-i18n.yml => check.yml} | 8 +++--- .github/workflows/lint.yml | 27 ------------------- 4 files changed, 5 insertions(+), 84 deletions(-) delete mode 100644 .github/workflows/check-source-formatting.yml delete mode 100644 .github/workflows/check-types.yml rename .github/workflows/{check-compiled-i18n.yml => check.yml} (70%) delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/check-source-formatting.yml b/.github/workflows/check-source-formatting.yml deleted file mode 100644 index 0a672aa6..00000000 --- a/.github/workflows/check-source-formatting.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Check source formatting - -on: - push: - branches-ignore: - - 'integration/**' - pull_request: - -jobs: - check-source-formatting: - runs-on: ubuntu-latest - - strategy: - matrix: - node: [14] - - steps: - - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - - run: cp config.cli.js config.js - - run: npm install - - run: npm run check-source-formatting diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml deleted file mode 100644 index b4cbe587..00000000 --- a/.github/workflows/check-types.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Check types - -on: - push: - branches-ignore: - - 'integration/**' - pull_request: - -jobs: - check-types: - runs-on: ubuntu-latest - - strategy: - matrix: - node: [14] - - steps: - - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - - run: cp config.cli.js config.js - - run: npm install - - run: npm run check-types diff --git a/.github/workflows/check-compiled-i18n.yml b/.github/workflows/check.yml similarity index 70% rename from .github/workflows/check-compiled-i18n.yml rename to .github/workflows/check.yml index 6c80dd3d..8b37e799 100644 --- a/.github/workflows/check-compiled-i18n.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: Check pre-compiled i18n +name: Check on: push: @@ -7,12 +7,14 @@ on: pull_request: jobs: - check-compiled-i18n: + check: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: node: [14] + check: [check-compiled-i18n, check-source-formatting, check-types, lint] steps: - uses: actions/checkout@v2 @@ -24,4 +26,4 @@ jobs: - run: cp config.cli.js config.js - run: npm install - - run: npm run check-compiled-i18n + - run: npm run ${{ matrix.check }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 4a349e0f..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Lint - -on: - push: - branches-ignore: - - 'integration/**' - pull_request: - -jobs: - lint: - runs-on: ubuntu-latest - - strategy: - matrix: - node: [14] - - steps: - - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - - run: cp config.cli.js config.js - - run: npm install - - run: npm run lint