diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 50 | ||||
| -rw-r--r-- | .github/workflows/codeql-analysis.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/lint.yml | 49 | ||||
| -rw-r--r-- | .github/workflows/oss-fuzz.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/spell-checker.yml | 17 |
5 files changed, 68 insertions, 58 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 135e39ca7..c96b955a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,18 +3,9 @@ name: Build & Test on: [push, pull_request] jobs: - Check-Skip: - if: | - !contains(github.event.head_commit.message, '[ci skip]') && - !contains(github.event.head_commit.message, '[skip ci]') && - !contains(github.event.head_commit.message, '[skip gha]') - runs-on: ubuntu-latest - steps: - - run: echo not skip - - Ubuntu-1604: - needs: Check-Skip - runs-on: ubuntu-16.04 + Ubuntu-1804-gcc: + runs-on: ubuntu-18.04 + timeout-minutes: 10 env: MRUBY_CONFIG: ci/gcc-clang CC: gcc @@ -27,9 +18,24 @@ jobs: - name: Build and test run: rake -m test:build && rake test:run - Ubuntu-1804-gcc: - needs: Check-Skip + Ubuntu-1804-clang: runs-on: ubuntu-18.04 + timeout-minutes: 10 + env: + MRUBY_CONFIG: ci/gcc-clang + CC: clang + steps: + - uses: actions/checkout@v2 + - name: Ruby version + run: ruby -v + - name: Compiler version + run: ${{ env.CC }} --version + - name: Build and test + run: rake -m test:build && rake test:run + + Ubuntu-2004-gcc: + runs-on: ubuntu-20.04 + timeout-minutes: 10 env: MRUBY_CONFIG: ci/gcc-clang CC: gcc @@ -42,9 +48,9 @@ jobs: - name: Build and test run: rake -m test:build && rake test:run - Ubuntu-1804-clang: - needs: Check-Skip - runs-on: ubuntu-18.04 + Ubuntu-2004-clang: + runs-on: ubuntu-20.04 + timeout-minutes: 10 env: MRUBY_CONFIG: ci/gcc-clang CC: clang @@ -58,8 +64,8 @@ jobs: run: rake -m test:build && rake test:run macOS: - needs: Check-Skip runs-on: macos-latest + timeout-minutes: 10 env: MRUBY_CONFIG: ci/gcc-clang CC: clang @@ -73,8 +79,8 @@ jobs: run: rake -m test:build && rake test:run Windows-MinGW: - needs: Check-Skip runs-on: windows-latest + timeout-minutes: 10 env: MRUBY_CONFIG: ci/gcc-clang CC: gcc @@ -88,8 +94,8 @@ jobs: run: rake -m test:build && rake test:run Windows-Cygwin: - needs: Check-Skip runs-on: windows-latest + timeout-minutes: 10 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true MRUBY_CONFIG: ci/gcc-clang @@ -100,7 +106,7 @@ jobs: cache-version: v1 steps: - uses: actions/checkout@v2 - - uses: actions/cache@v2 + - uses: actions/[email protected] with: path: ${{ env.package-dir }} key: ${{ runner.os }}-cygwin-${{ env.cache-version }} @@ -134,8 +140,8 @@ jobs: run: echo '::set-env name=PATH::C:\windows\System32' Windows-VC: - needs: Check-Skip runs-on: windows-latest + timeout-minutes: 10 env: MRUBY_CONFIG: ci/msvc steps: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 19fb63b35..ea9f9bd8e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,10 +8,6 @@ on: jobs: CodeQL-Build: - if: | - !contains(github.event.head_commit.message, '[ci skip]') && - !contains(github.event.head_commit.message, '[skip ci]') && - !contains(github.event.head_commit.message, '[skip gha]') runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ed1682b05..fb7f62d4a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,21 +3,50 @@ name: โ๏ธ Lint on: [pull_request] jobs: - yamllint: - name: ๐ถ YAML - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: ๐งน YAML Lint - uses: ibiqlik/action-yamllint@v3 markdownlint: name: ๐ธ Markdown runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: ๐ Use Node.js - uses: actions/[email protected] + uses: actions/[email protected] with: - node-version: '12.x' - - run: npm install -g [email protected] + node-version: '14' + - run: npm install -g [email protected] - run: markdownlint '**/*.md' + misspell: + name: ๐ฅ Check Spelling + runs-on: ubuntu-latest + steps: + - name: ๐ Check Out + uses: actions/checkout@v2 + - name: ๐
Install + run: | + wget -O - -q https://git.io/misspell | sh -s -- -b . + - name: ๐ถ๏ธ Misspell + run: | + git ls-files --empty-directory | xargs ./misspell -error + trailing-whitespace: + name: ๐ง Trailing whitespace + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: ๐งน Check for trailing whitespace + run: "! git grep -EIn $'[ \t]+$'" + yamllint: + name: ๐ถ YAML + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax + architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install yamllint + - name: ๐งน YAML Lint + run: | + # return non-zero exit code on warnings + yamllint --strict . diff --git a/.github/workflows/oss-fuzz.yml b/.github/workflows/oss-fuzz.yml index 8f2b24f17..0fd505624 100644 --- a/.github/workflows/oss-fuzz.yml +++ b/.github/workflows/oss-fuzz.yml @@ -2,10 +2,6 @@ name: CIFuzz on: [pull_request] jobs: Fuzzing: - if: | - !contains(github.event.head_commit.message, '[ci skip]') && - !contains(github.event.head_commit.message, '[skip ci]') && - !contains(github.event.head_commit.message, '[skip gha]') runs-on: ubuntu-latest steps: - name: Build Fuzzers @@ -20,7 +16,7 @@ jobs: fuzz-seconds: 600 dry-run: false - name: Upload Crash - uses: actions/upload-artifact@v1 + uses: actions/[email protected] if: failure() with: name: artifacts diff --git a/.github/workflows/spell-checker.yml b/.github/workflows/spell-checker.yml deleted file mode 100644 index 7e86e0198..000000000 --- a/.github/workflows/spell-checker.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: ๐ Spellchecker - -on: [pull_request] - -jobs: - misspell: - name: ๐งน Check Spelling - runs-on: ubuntu-latest - steps: - - name: ๐ Check Out - uses: actions/checkout@v2 - - name: ๐
Install - run: | - wget -O - -q https://git.io/misspell | sh -s -- -b . - - name: ๐ถ๏ธ Misspell - run: | - git ls-files --empty-directory | xargs ./misspell -error |
