Skip to content

Commit

Permalink
wip: nixify
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Oct 28, 2024
1 parent 583c739 commit 5854ab7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 197 deletions.
174 changes: 0 additions & 174 deletions .build.sh

This file was deleted.

26 changes: 3 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
scala: [ '2.12', '2.13', '3' ]
steps:
- uses: 7mind/github-env@minimal
with:
java-version: ${{ matrix.java }}
- name: Build and Test with Coverage
env:
SCALA_VERSION: ${{ matrix.scala }}
Expand All @@ -47,12 +45,10 @@ jobs:
run: ./build.sh nix gen test
- uses: dorny/test-reporter@v1
if: (needs.checksecret.outputs.HAVE_SECRETS == 'true') && (success() || failure())
# continue-on-error: ${{ matrix.scala == '3' }}
with:
name: Test reports (JDK ${{ matrix.java }}, Scala ${{ matrix.scala }}, JVM)
path: '**/target/test-reports/TEST-*.xml'
reporter: java-junit
# fail-on-error: ${{ matrix.scala != '3' }}
- uses: bitwarden/sm-action@v2
if: (needs.checksecret.outputs.HAVE_SECRETS == 'true') && (success() || failure())
with:
Expand All @@ -64,9 +60,9 @@ jobs:
continue-on-error: true
with:
token: ${{ env.TOKEN_CODECOV }}
verbose: true # optional (default = false)
# fail_ci_if_error: ${{ matrix.scala != '3' }}
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
Expand All @@ -84,8 +80,6 @@ jobs:
scala: [ '2.12', '2.13', '3' ]
steps:
- uses: 7mind/github-env@minimal
with:
java-version: ${{ matrix.java }}
- name: Build and Test with Coverage
env:
SCALA_VERSION: ${{ matrix.scala }}
Expand All @@ -100,12 +94,10 @@ jobs:
run: ./build.sh nix gen-jsonly test
- uses: dorny/test-reporter@v1
if: (needs.checksecret.outputs.HAVE_SECRETS == 'true') && (success() || failure())
# continue-on-error: ${{ matrix.scala == '3' }}
with:
name: Test reports (JDK ${{ matrix.java }}, Scala ${{ matrix.scala }}, JS)
path: '**/target/test-reports/TEST-*.xml'
reporter: java-junit
# fail-on-error: ${{ matrix.scala != '3' }}

test-site:
runs-on: ubuntu-latest
Expand All @@ -115,8 +107,6 @@ jobs:
scala: [ '2.13']
steps:
- uses: 7mind/github-env@minimal
with:
java-version: ${{ matrix.java }}
- name: Build Microsite
env:
SCALA_VERSION: ${{ matrix.scala }}
Expand All @@ -133,8 +123,6 @@ jobs:
if: needs.checksecret.outputs.HAVE_SECRETS == 'true'
steps:
- uses: 7mind/github-env@minimal
with:
java-version: ${{ matrix.java }}
- uses: bitwarden/sm-action@v2
with:
access_token: ${{ secrets.TOKEN_BITWARDEN_SM }}
Expand All @@ -148,13 +136,8 @@ jobs:
env:
SCALA_VERSION: ${{ matrix.scala }}
JAVA_VERSION: ${{ matrix.java }}
SONATYPE_SECRET: .secrets/credentials.sonatype-nexus.properties
run: ./build.sh nix gen-js site-publish
# mkdir .secrets
# echo "$SONATYPE_CREDENTIALS_FILE" > "$SONATYPE_SECRET"
# openssl aes-256-cbc -K ${OPENSSL_KEY} -iv ${OPENSSL_IV} -in secrets.tar.enc -out secrets.tar -d
# tar xvf secrets.tar


publish-artifacts:
runs-on: ubuntu-latest
needs: [ 'build-jvm', 'build-js', 'checksecret' ]
Expand All @@ -166,8 +149,6 @@ jobs:
scala: [ '2.12', '2.13', '3']
steps:
- uses: 7mind/github-env@minimal
with:
java-version: ${{ matrix.java }}
- uses: bitwarden/sm-action@v2
with:
access_token: ${{ secrets.TOKEN_BITWARDEN_SM }}
Expand All @@ -187,7 +168,6 @@ jobs:
tar xvf secrets.tar
./build.sh nix gen-js publish-scala
# continue-on-error: ${{ matrix.scala == '3' }}
all-good:
if: always()
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

nodejs
nodePackages.npm

gitMinimal
];

shellHook = ''
Expand Down

0 comments on commit 5854ab7

Please sign in to comment.