Merge pull request #51 from nsclass/dependabot/npm_and_yarn/ns-svg-co… #155
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
| # This workflow will build a package using Gradle | |
| # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle | |
| name: Spring SVG Converter | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ["2.7.0"] | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
| settings-path: ${{ github.workspace }} # location for the settings.xml file | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Build with Gradle | |
| run: gradle build | |
| - name: Run BDD test | |
| run: gradle bdd | |
| # The USERNAME and TOKEN need to correspond to the credentials environment variables used in | |
| # the publishing section of your build.gradle | |
| # - name: Publish to GitHub Packages | |
| # run: gradle publish | |
| # env: | |
| # USERNAME: ${{ github.actor }} | |
| # TOKEN: ${{ secrets.GITHUB_TOKEN }} |