SK-1623 Java SDK v2 #327
Workflow file for this run
This file contains hidden or 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: PR CI Checks | |
| on: [pull_request] | |
| jobs: | |
| check-commit-message: | |
| name: Check Commit Message | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check JIRA ID | |
| uses: gsactions/commit-message-checker@v1 | |
| with: | |
| pattern: '\[?[A-Z]{1,5}-[1-9][0-9]*.+$' | |
| flags: "gm" | |
| excludeDescription: "true" | |
| checkAllCommitMessages: "true" | |
| accessToken: ${{ secrets.PAT_ACTIONS }} | |
| error: "One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )" | |
| Test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - uses: actions/setup-java@v1 | |
| with: | |
| java-version: "1.8" | |
| - name: create-json | |
| id: create-json | |
| uses: jsdaniell/create-json@1.1.2 | |
| with: | |
| name: "credentials.json" | |
| json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }} | |
| - name: create env | |
| id: create-env | |
| run: | | |
| touch .env | |
| echo SKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} >> .env | |
| echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env | |
| - name: Build & Run tests with Maven | |
| run: mvn -B package -DTEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} -DTEST_DATA_CREDENTIALS_FILE=${{ secrets.TEST_DATA_CREDENTIALS_FILE }} -f pom.xml | |
| - name: Codecov | |
| uses: codecov/codecov-action@v2.1.0 | |
| with: | |
| token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }} | |
| files: target/site/jacoco/jacoco.xml | |
| name: codecov-skyflow-java | |
| verbose: true |