feat(alphatex): new parser #2631
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: Build | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Linting and TypeCheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
lfs: true | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- run: npm install | |
- run: npm run generate-typescript | |
- run: npm run lint-ci | |
if: ${{ always() }} | |
- run: npm run typecheck | |
if: ${{ always() }} | |
build_web: | |
name: Build and Test Web | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
lfs: true | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build-web | |
- run: npm run test-web | |
id: test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ failure() && steps.test.conclusion == 'failure' }} | |
with: | |
name: test-results-web | |
path: | | |
packages/alphatab/test-data/**/*.new.png | |
packages/alphatab/test-data/**/*.diff.png | |
build_csharp: | |
name: Build and Test C# | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
lfs: true | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- uses: actions/setup-dotnet@v5 | |
with: | |
dotnet-version: '8' | |
- run: npm ci | |
- run: npm run build-csharp | |
- run: npm run test-csharp | |
id: test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ failure() && steps.test.conclusion == 'failure' }} | |
with: | |
name: test-results-csharp | |
path: | | |
packages/alphatab/test-data/**/*.new.png | |
packages/alphatab/test-data/**/*.diff.png | |
build_kotlin: | |
name: Build and Test Kotlin | |
runs-on: ubuntu-latest | |
env: | |
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}} | |
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}} | |
OSSRH_USERTOKEN_USERNAME: ${{secrets.OSSRH_USERTOKEN_USERNAME}} | |
OSSRH_USERTOKEN_PASSWORD: ${{secrets.OSSRH_USERTOKEN_PASSWORD}} | |
SONATYPE_STAGING_PROFILE_ID: ${{secrets.SONATYPE_STAGING_PROFILE_ID}} | |
SONATYPE_SIGNING_KEY_ID: ${{secrets.SONATYPE_SIGNING_KEY_ID}} | |
SONATYPE_SIGNING_PASSWORD: ${{secrets.SONATYPE_SIGNING_PASSWORD}} | |
SONATYPE_SIGNING_KEY: ${{secrets.SONATYPE_SIGNING_KEY}} | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
lfs: true | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- uses: actions/setup-java@v5 | |
with: | |
java-version: '19' | |
distribution: 'temurin' | |
- uses: gradle/actions/setup-gradle@v5 | |
with: | |
cache-read-only: false | |
- run: npm ci | |
- run: npm run build-kotlin | |
- run: npm run test-kotlin | |
id: test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ failure() && steps.test.conclusion == 'failure' }} | |
with: | |
name: test-results-kotlin | |
path: | | |
packages/alphatab/test-data/**/*.new.png | |
packages/alphatab/test-data/**/*.diff.png | |
- run: ./packages/kotlin/src/gradlew --stop |