ci: add GitHub Actions workflow and rewrite README in English #1
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| api: | |
| name: API (build & test) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore | |
| run: dotnet restore Trust-Finance.sln | |
| - name: Build | |
| run: dotnet build Trust-Finance.sln --configuration Release --no-restore | |
| - name: Test | |
| run: dotnet test Trust-Finance.sln --configuration Release --no-build --verbosity normal | |
| web: | |
| name: Web (build) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: Trust-Finance.Web | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: Trust-Finance.Web/package-lock.json | |
| - name: Install | |
| run: npm ci | |
| - name: Build (type-check + bundle) | |
| run: npm run build |