Skip to content

Use Java 11 to build Nokee project #1690

Use Java 11 to build Nokee project

Use Java 11 to build Nokee project #1690

Workflow file for this run

name: CI
on: push
jobs:
master-check:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install @octokit/action
- run: node .github/actions/check-master.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
sanity-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ./.github/actions/install-documentation-dependencies
- name: Build all code
uses: ./.github/actions/gradle
with:
arguments: sanityCheck --no-daemon
build-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
build-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
build-scan-access-key: ${{ secrets.BUILD_SCAN_ACCESS_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy:
needs: sanity-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: '0' # will fetch the entire history for auto-version plugin
- name: Deploy to snapshot
uses: ./.github/actions/gradle
with:
arguments: publishAllPublicationsToNokeeSnapshotRepository -Dintegration "-PnokeeSnapshotAccessKey=${{ secrets.NOKEE_SNAPSHOT_ACCESS_KEY }}" "-PnokeeSnapshotSecretKey=${{ secrets.NOKEE_SNAPSHOT_SECRET_KEY }}" "-PnokeeSnapshotUrl=${{ secrets.NOKEE_SNAPSHOT_URL }}"
build-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
build-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
build-scan-access-key: ${{ secrets.BUILD_SCAN_ACCESS_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
quick-test:
needs: sanity-check
if: github.ref != 'refs/heads/master'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-20.04', 'windows-latest', 'macos-latest']
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ./.github/actions/install-build-dependencies
- name: Run all tests
uses: ./.github/actions/gradle
with:
arguments: quickTest
build-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
build-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
build-scan-access-key: ${{ secrets.BUILD_SCAN_ACCESS_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
full-test:
needs: sanity-check
if: github.ref == 'refs/heads/master'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-20.04', 'windows-latest', 'macos-latest']
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ./.github/actions/install-build-dependencies
- name: Run all tests
uses: ./.github/actions/gradle
with:
arguments: fullTest
build-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
build-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
build-scan-access-key: ${{ secrets.BUILD_SCAN_ACCESS_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
check-baked-documentation:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ./.github/actions/install-documentation-dependencies
- uses: ./.github/actions/install-build-dependencies
- name: Run all tests
uses: ./.github/actions/gradle
with:
arguments: :docs:bakedDocsTest --no-build-cache -PskipAllAsciinemaTasks "-PdocsNokeeDevAccessKey=${{ secrets.AWS_ACCESS_KEY }}" "-PdocsNokeeDevSecretKey=${{ secrets.AWS_SECRET_KEY }}"
build-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
build-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
build-scan-access-key: ${{ secrets.BUILD_SCAN_ACCESS_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
check-documentations:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-20.04', 'windows-latest', 'macos-latest']
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ./.github/actions/install-documentation-dependencies
- uses: ./.github/actions/install-build-dependencies
- name: Run all tests
uses: ./.github/actions/gradle
with:
arguments: :docs:docsTest --no-build-cache -PskipAllAsciinemaTasks "-PdocsNokeeDevAccessKey=${{ secrets.AWS_ACCESS_KEY }}" "-PdocsNokeeDevSecretKey=${{ secrets.AWS_SECRET_KEY }}"
build-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
build-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
build-scan-access-key: ${{ secrets.BUILD_SCAN_ACCESS_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
check-documentations-freebsd:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: nokeedev/actions/setup-vagrant@main
with:
install-vagrant-if: 'false'
install-virtualbox-if: 'false'
- uses: nokeedev/actions/vagrant-provision@main
with:
mem: 4096
name: freebsd-12.4
- uses: nokeedev/actions/vagrant-ssh@main
with:
name: freebsd-12.4
run: ./gradlew --continue --no-daemon :docs:docsTest --no-build-cache -PskipAllAsciinemaTasks "-Dgradle.enterprise.url=https://ge.nokee.dev/" "-Dgradle.enterprise.accessKey=${{ secrets.BUILD_SCAN_ACCESS_KEY }}" "-PdocsNokeeDevAccessKey=${{ secrets.AWS_ACCESS_KEY }}" "-PdocsNokeeDevSecretKey=${{ secrets.AWS_SECRET_KEY }}"
publish-head-milestone:
if: github.ref == 'refs/heads/master'
needs: [quick-test, full-test, check-documentations, check-baked-documentation]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: '0' # will fetch the entire history for auto-version plugin
- uses: ./.github/actions/install-documentation-dependencies
- name: Publish
uses: ./.github/actions/gradle
with:
arguments: publishAllPublicationsToNokeeReleaseRepository :docs:publishBakedPublicationToDocsNokeeDevRepository -Dmilestone --no-build-cache -PskipAllAsciinemaTasks "-PdocsNokeeDevAccessKey=${{ secrets.AWS_ACCESS_KEY }}" "-PdocsNokeeDevSecretKey=${{ secrets.AWS_SECRET_KEY }}"
build-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
build-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
build-scan-access-key: ${{ secrets.BUILD_SCAN_ACCESS_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}