Property Tests #5
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: Property Tests | |
| on: | |
| # schedule: | |
| # - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| issues: write | |
| concurrency: | |
| group: property-test | |
| cancel-in-progress: false | |
| jobs: | |
| proptest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: cachix/cachix-action@v14 | |
| with: | |
| name: elixir-tools | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: ${{ runner.os }}-mix-${{ hashFiles('**/.mise.toml') }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-${{ hashFiles('**/.mise.toml') }}- | |
| - name: Install Dependencies | |
| run: nix develop --command bash -c "mix deps.get" | |
| - name: Compile | |
| run: nix develop --command bash -c "MIX_ENV=test mix compile" | |
| - name: Run property tests | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: nix develop --command bash -c "MIX_ENV=test mix test.json --only property | .github/property_failures.exs" |