neiam /action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
Log in to mark this repository.
Ease debugging, fix some CI issues, tweak folder structure (#200)
b9783cd · Paulo F. Oliveira · 2023-05-08 08:31
Message
{commit_body(@commit)}
Files changed
modified
.eslintrc.yml
+0
−1
| 9 | 9 | rules: |
| 10 | 10 | indent: ["warn", 2] |
| 11 | 11 | max-len: ["warn", 100] |
| 12 | − no-console: 0 | |
| 13 | 12 | no-undef: "error" |
| 14 | 13 | no-unused-vars: ["error", {"varsIgnorePattern": "^_"}] |
| 15 | 14 | no-use-before-define: 0 |
modified
.github/workflows/action.yml
+1
−1
| 46 | 46 | id: setup-beam |
| 47 | 47 | uses: ./ |
| 48 | 48 | with: |
| 49 | − version-file: __tests__/.tool-versions | |
| 49 | + version-file: test/.tool-versions | |
| 50 | 50 | version-type: strict |
| 51 | 51 | |
| 52 | 52 | unit_tests_windows: |
modified
.github/workflows/hexpm-mirrors.yml
+0
−21
| 35 | 35 | https://mirror.invalid |
| 36 | 36 | https://cdn.jsdelivr.net/hex |
| 37 | 37 | https://builds.hex.pm |
| 38 | − | |
| 39 | − test-invalid-mirror: | |
| 40 | − name: Test errors with mirror | |
| 41 | − runs-on: ubuntu-22.04 | |
| 42 | − steps: | |
| 43 | − - uses: actions/checkout@v3 | |
| 44 | − - name: Use erlef/setup-beam | |
| 45 | − id: failing-setup-beam | |
| 46 | − uses: ./ | |
| 47 | − continue-on-error: true | |
| 48 | − with: | |
| 49 | − otp-version: '24.3.4.6' | |
| 50 | − elixir-version: 'v1.13.4' | |
| 51 | − install-rebar: true | |
| 52 | − install-hex: true | |
| 53 | − hexpm-mirrors: https://mirror.invalid | |
| 54 | − - name: Report unexpected success | |
| 55 | − if: ${{ steps.failing-setup-beam.outcome == 'success' }} | |
| 56 | − run: | | |
| 57 | − echo "Action is expected to fail" | |
| 58 | − exit 1 |
modified
.github/workflows/ubuntu.yml
+5
−5
| 53 | 53 | os: 'ubuntu-latest' |
| 54 | 54 | - elixir-version: 'v1.4' |
| 55 | 55 | otp-version: '20' |
| 56 | − rebar3-version: '3.6.0' | |
| 56 | + rebar3-version: '3.15.0' | |
| 57 | 57 | os: 'ubuntu-20.04' |
| 58 | 58 | - elixir-version: 'v1.4' |
| 59 | 59 | otp-version: '20' |
| 165 | 165 | if: ${{matrix.combo.elixir-version}} |
| 166 | 166 | - name: Run Elixir/Mix project tests |
| 167 | 167 | run: | |
| 168 | − cd test-projects/elixir_mix | |
| 168 | + cd test/projects/elixir_mix | |
| 169 | 169 | mix deps.get |
| 170 | 170 | mix test |
| 171 | 171 | if: ${{matrix.combo.elixir-version}} |
| 172 | 172 | - name: Run Erlang/rebar3 project tests |
| 173 | 173 | run: | |
| 174 | − cd test-projects/erlang_rebar3 | |
| 174 | + cd test/projects/erlang_rebar3 | |
| 175 | 175 | rebar3 ct |
| 176 | 176 | if: ${{matrix.combo.rebar3-version}} |
| 177 | 177 | - name: Format Gleam project (without installing Erlang/OTP) |
| 178 | 178 | run: | |
| 179 | − cd test-projects/gleam_gleam | |
| 179 | + cd test/projects/gleam_gleam | |
| 180 | 180 | gleam format |
| 181 | 181 | if: ${{ matrix.combo.gleam-version && !matrix.combo.otp-version }} |
| 182 | 182 | - name: Run Gleam project tests (without `rebar3`) |
| 183 | 183 | run: | |
| 184 | − cd test-projects/gleam_gleam | |
| 184 | + cd test/projects/gleam_gleam | |
| 185 | 185 | gleam test |
| 186 | 186 | if: ${{ matrix.combo.gleam-version && matrix.combo.otp-version && !matrix.combo.rebar3-version }} |
| 187 | 187 | - name: Run escript |
modified
.github/workflows/windows.yml
+3
−3
| 79 | 79 | if: ${{matrix.combo.rebar3-version}} |
| 80 | 80 | - name: rebar3 from Rust |
| 81 | 81 | run: | |
| 82 | − cd test-projects/rust_rebar3_cmd | |
| 82 | + cd test/projects/rust_rebar3_cmd | |
| 83 | 83 | cargo test -- --nocapture |
| 84 | 84 | if: ${{matrix.combo.rebar3-version}} |
| 85 | 85 | - name: mix version and help (CLI) |
| 90 | 90 | if: ${{matrix.combo.elixir-version}} |
| 91 | 91 | - name: Run Elixir/Mix project tests |
| 92 | 92 | run: | |
| 93 | − cd test-projects/elixir_mix | |
| 93 | + cd test/projects/elixir_mix | |
| 94 | 94 | mix deps.get |
| 95 | 95 | mix test |
| 96 | 96 | if: ${{matrix.combo.elixir-version}} |
| 97 | 97 | - name: Run Erlang/rebar3 project tests |
| 98 | 98 | run: | |
| 99 | − cd test-projects/erlang_rebar3 | |
| 99 | + cd test/projects/erlang_rebar3 | |
| 100 | 100 | rebar3 ct |
| 101 | 101 | if: ${{matrix.combo.rebar3-version}} |
| 102 | 102 | - name: Run escript |
modified
.gitignore
+1
−1
Click to load diff…
modified
MATCHER_NOTICE.md
+1
−1
Click to load diff…
renamed
+0
−0
Click to load diff…
modified
dist/index.js
+40
−32
Click to load diff…
added
matchers/elixir-matchers.json
+62
−0
Click to load diff…
modified
package-lock.json
+1
−1
Click to load diff…
modified
package.json
+3
−3
Click to load diff…
modified
src/setup-beam.js
+44
−31
Click to load diff…
renamed
__tests__/problem-matchers.test.js → test/problem-matchers.test.js
+3
−2
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
+0
−0
Click to load diff…
renamed
__tests__/setup-beam.test.js → test/setup-beam.test.js
+29
−25
Click to load diff…
Parents: cf692c3