release 0.1.0 #1
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Pre-release Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@main | |
| - name: Run unit tests | |
| run: nix develop .#ci --command zig build test --summary all | |
| - name: Start OpenSearch | |
| run: nix develop .#ci --command es-start | |
| - name: Run smoke tests | |
| run: nix develop .#ci --command zig build test-smoke --summary all | |
| env: | |
| ES_URL: http://localhost:9200 | |
| - name: Run integration tests | |
| run: nix develop .#ci --command zig build test-integration --summary all | |
| env: | |
| ES_URL: http://localhost:9200 | |
| - name: Stop OpenSearch | |
| if: always() | |
| run: nix develop .#ci --command es-stop | |
| release: | |
| name: Create Release | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| draft: false | |
| prerelease: ${{ contains(github.ref_name, '-rc') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-alpha') }} |