Added working dir so it will work correct now #9
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: Erlang CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| compile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Erlang | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: 25.3 | |
| rebar3-version: 3.18.0 | |
| - name: Compile project | |
| working-directory: lab1/task_4 | |
| run: rebar3 compile | |
| tests: | |
| runs-on: ubuntu-latest | |
| needs: compile | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Erlang | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: 25.3 | |
| rebar3-version: 3.18.0 | |
| - name: Run EUnit tests | |
| working-directory: lab1/task_4 | |
| run: rebar3 eunit |