feat(ci): improve release assets with proper naming and installers #10
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: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| GO_VERSION: '1.23' | |
| NODE_VERSION: '20' | |
| jobs: | |
| test-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache: true | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package.json | |
| - name: Install Frontend Dependencies | |
| run: cd frontend && npm install | |
| - name: Build Frontend | |
| run: cd frontend && npm run build | |
| - name: Run Go Tests | |
| # Frontend build is required because of embedding | |
| run: go test ./... -v | |
| test-frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package.json | |
| - name: Install dependencies | |
| run: cd frontend && npm install | |
| - name: Run Frontend Tests | |
| run: cd frontend && npm test | |
| - name: Build frontend check | |
| run: cd frontend && npm run build | |
| build-check: | |
| strategy: | |
| matrix: | |
| os: [windows-latest, macos-latest, ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Linux Dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libgtk-3-dev \ | |
| libwebkit2gtk-4.1-dev \ | |
| build-essential \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Install Wails | |
| run: go install github.com/wailsapp/wails/v2/cmd/wails@latest | |
| - name: Build Check (Linux) | |
| if: runner.os == 'Linux' | |
| run: wails build -s -tags webkit2_41 | |
| - name: Build Check (Windows/macOS) | |
| if: runner.os != 'Linux' | |
| run: wails build -s |