Skip to content

Commit

Permalink
wip: nixify
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Oct 30, 2024
1 parent 031d1c4 commit 349c07a
Showing 1 changed file with 15 additions and 48 deletions.
63 changes: 15 additions & 48 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,54 +37,21 @@ jobs:
docker run -v "$(pwd):/test:z" --rm --entrypoint=/bin/bash -t ubuntu -c "rm -rf /test/test"
docker run -v "$(pwd):/test:z" --rm --entrypoint=/bin/bash -t ubuntu -c "ls -la /test"
# build-jvm:
# runs-on: ubuntu-latest
# needs: [ 'checksecret' ]
# strategy:
# fail-fast: false
# matrix:
# java: [ '11', '17', '22' ]
# scala: [ '2.12', '2.13', '3' ]
# steps:
# - uses: 7mind/github-env@minimal
# - name: Build and Test with Coverage
# env:
# SCALA_VERSION: ${{ matrix.scala }}
# JAVA_VERSION: ${{ matrix.java }}
# if: matrix.scala != '3'
# run: ./build.sh nix gen coverage
# - name: Build and Test without Coverage # coverage leads to verification errors on scala3
# env:
# SCALA_VERSION: ${{ matrix.scala }}
# JAVA_VERSION: ${{ matrix.java }}
# if: matrix.scala == '3'
# run: ./build.sh nix gen test
# - uses: dorny/test-reporter@v1
# if: (needs.checksecret.outputs.HAVE_SECRETS == 'true') && (success() || failure())
# with:
# name: Test reports (JDK ${{ matrix.java }}, Scala ${{ matrix.scala }}, JVM)
# path: '**/target/test-reports/TEST-*.xml'
# reporter: java-junit
# - uses: bitwarden/sm-action@v2
# if: (needs.checksecret.outputs.HAVE_SECRETS == 'true') && (success() || failure())
# with:
# access_token: ${{ secrets.TOKEN_BITWARDEN_SM }}
# secrets: |
# 5e21669e-48b4-49ce-82f0-b193010a2ded > TOKEN_CODECOV
# - uses: codecov/codecov-action@v4
# if: needs.checksecret.outputs.HAVE_SECRETS == 'true'
# continue-on-error: true
# with:
# token: ${{ env.TOKEN_CODECOV }}
# verbose: true
# files: "**/cobertura.xml"
# # fail_ci_if_error: ${{ matrix.scala != '3' }}
# # TODO: do we need scoverage.xml? If so files: may be just omitted
# # files: cobertura.xml,scoverage.xml
# # flags: unittests
# - name: Upload dependency graph
# uses: scalacenter/sbt-dependency-submission@v2
test-selfhosted:
runs-on: self-hosted
needs: [ 'checksecret' ]
strategy:
fail-fast: false
matrix:
java: [ '22' ]
scala: [ '2.13']
steps:
- uses: 7mind/github-env@minimal
- name: Build and Test
env:
SCALA_VERSION: ${{ matrix.scala }}
JAVA_VERSION: ${{ matrix.java }}
run: ./build.sh nix gen test
#
# build-js:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 349c07a

Please sign in to comment.