chore(ci): cache dependences and database binaries #1443
Workflow file for this run
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: "Metadata-Service-Test" | |
on: | |
pull_request: | |
types: [opened, reopened] | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ZK-Test: | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [8] | |
os: [ubuntu-latest, windows-latest, macos-13] | |
runs-on: ${{ matrix.os}} | |
env: | |
STORAGE: zookeeper | |
ZOOKEEPER_CONNECTION_STRING: 127.0.0.1:2181 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Environment dependence | |
uses: ./.github/actions/dependence | |
with: | |
java: ${{ matrix.java }} | |
scope: base | |
- name: Run ZooKeeper | |
uses: ./.github/actions/zookeeperRunner | |
- name: Run test for meta manager | |
run: mvn test -q -Dtest=IMetaManagerTest -DfailIfNoTests=false -P-format | |
- name: Run test for sync protocol | |
run: mvn test -q -Dtest=ZooKeeperSyncProtocolTest -DfailIfNoTests=false -P-format | |
- uses: codecov/codecov-action@v1 | |
with: | |
file: ./**/target/site/jacoco/jacoco.xml | |
name: codecov | |
ETCD-Test: | |
strategy: | |
fail-fast: false | |
max-parallel: 20 | |
matrix: | |
java: [8] | |
os: [ubuntu-latest, windows-latest, macos-13] | |
runs-on: ${{ matrix.os}} | |
env: | |
STORAGE: etcd | |
ETCD_ENDPOINTS: http://localhost:2379 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Environment dependence | |
uses: ./.github/actions/dependence | |
with: | |
java: ${{ matrix.java }} | |
scope: base | |
- name: Run ETCD | |
uses: ./.github/actions/etcdRunner | |
- name: Run test for meta manager | |
run: mvn test -q -Dtest=IMetaManagerTest -DfailIfNoTests=false -P-format | |
- name: Run test for sync protocol | |
run: mvn test -q -Dtest=ETCDSyncProtocolTest -DfailIfNoTests=false -P-format | |
- uses: codecov/codecov-action@v1 | |
with: | |
file: ./**/target/site/jacoco/jacoco.xml | |
name: codecov |