feat: add Node.js CI/CD templates (#33) #50
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: AuroCI Console CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # To turn off on of the OS simply delete it. | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| # NOTE!! Since the project was made in .NET version 10, we need to use the latest version of .NET SDK, if u use the other just simply delete it and paste your version. | |
| dotnet-version: '10.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build App | |
| run: dotnet build --no-restore -c Release | |
| - name: Run Tests | |
| run: dotnet test --no-build -c Release --verbosity normal | |
| - name: Publish App | |
| run: dotnet publish -c Release -o ./publish | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: console-app-${{ matrix.os }} | |
| path: ./publish |