-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #395 from tishun/topic/tishun/introduce-github-act…
…ions Migrate from CircleCI to Github Actions
- Loading branch information
Showing
6 changed files
with
65 additions
and
202 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'doc/**' | ||
- '**/*.md' | ||
branches: | ||
- master | ||
- '[0-9].*' | ||
pull_request: | ||
branches: | ||
- master | ||
- '[0-9].*' | ||
schedule: | ||
- cron: '0 1 * * *' # nightly build | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v4 | ||
- name: Set Java up in the runner | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
- name: Setup Maven | ||
uses: s4u/[email protected] | ||
with: | ||
java-version: 8 | ||
- name: Install missing dependencies to container | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libssl-dev | ||
wget http://download.redis.io/releases/redis-6.0.10.tar.gz | ||
tar -xzvf redis-6.0.10.tar.gz | ||
make -C redis-6.0.10 -j`nproc` BUILD_TLS=yes | ||
- name: Maven offline | ||
run: | | ||
mvn -q dependency:go-offline | ||
- name: Run tests | ||
run: | | ||
export PATH=$PWD/redis-6.0.10/src:$PATH | ||
make test | ||
env: | ||
JVM_OPTS: -Xmx3200m | ||
TERM: dumb | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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
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
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