事件触发时,增加链式Action的抽象实现,让状态流转时,可以执行多个动作 #530
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
# Quickstart for GitHub Actions | |
# https://docs.github.com/en/actions/quickstart | |
name: Fast CI | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
java: [ 17 ] | |
fail-fast: false | |
max-parallel: 64 | |
name: fast test on Java ${{ matrix.java }} OS ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: zulu | |
cache: maven | |
- name: Build with Maven | |
run: ./mvnw -V --no-transfer-progress clean install | |
- name: remove cola self maven install files for OS *nix | |
run: rm -rf $HOME/.m2/repository/com/alibaba/{cola,craftsman} | |
# https://docs.github.com/en/actions/learn-github-actions/variables#detecting-the-operating-system | |
# https://docs.github.com/en/actions/learn-github-actions/expressions | |
if: runner.os != 'Windows' | |
- name: remove cola self maven install files for OS Windows | |
run: | | |
Remove-Item -Recurse -Force $home/.m2/repository/com/alibaba/cola | |
Remove-Item -Recurse -Force $home/.m2/repository/com/alibaba/craftsman | |
if: runner.os == 'Windows' | |