Merge branch 'feature/thoth-json-core' of https://github.com/njlr/tho… #37
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, pull_request ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| DOTNET_NOLOGO: true | |
| steps: | |
| - name: Setup .NET Core SDK | |
| uses: actions/setup-dotnet@v1.7.2 | |
| with: | |
| dotnet-version: 8.0.407 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.20.8 | |
| - uses: actions/checkout@v2 | |
| - name: Build and Test | |
| env: | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| DOTNET_NOLOGO: true | |
| run: | | |
| dotnet tool restore | |
| dotnet paket restore | |
| yarn install --immutable --immutable-cache --check-cache | |
| dotnet build -c Release | |
| dotnet fable ./thoth-json-codec | |
| dotnet run --project ./tests | |
| (cd ./tests && yarn build && yarn test) |