Merge branch 'main' of github.com:groupoid/henk #66
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] | |
| jobs: | |
| test: | |
| name: Test (Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| elixir: ['1.16'] | |
| otp: ['26'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{matrix.elixir}} | |
| otp-version: ${{matrix.otp}} | |
| - name: Cache deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: ${{ runner.os }}-mix- | |
| - name: Cache build | |
| uses: actions/cache@v4 | |
| with: | |
| path: _build | |
| key: ${{ runner.os }}-build-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: ${{ runner.os }}-build- | |
| - name: Mix Hex Dependencies | |
| run: mix deps.get | |
| - name: Compile AUTOMATH | |
| run: mix henk.base --syntax=aut68 | |
| - name: Compile Miranda | |
| run: mix henk.base --syntax=henk | |
| - name: Compile Morte | |
| run: mix henk.base --syntax=morte | |
| - name: Test AUTOMATH | |
| run: mix henk.test --syntax=aut68 | |
| - name: Test Miranda | |
| run: mix henk.test --syntax=henk | |
| - name: Test Morte | |
| run: mix henk.test --syntax=morte |