This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
feat(GitHub Actions): 在触发时取消之前触发的未完成 workflow #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- dev | |
workflow_dispatch: | |
concurrency: | |
group: "lint" | |
cancel-in-progress: true | |
jobs: | |
lint: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: init environment | |
uses: ./.github/actions/initEnvironment | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: lint | |
if: success() | |
run: cargo make ci-lint |