neiam
/action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Allow for latest 100 rebar3 versions when fetching from GitHub (#42)
11d59b1 · Paulo F. Oliveira · 2021-05-28 01:28
Files changed
modified
.github/workflows/ci.yml
+2
−2
@@ -20,13 +20,13 @@ jobs:
| 20 | 20 | node-version: '12' |
| 21 | 21 | - run: npm install -g npm |
| 22 | 22 | - run: npm install |
| 23 | − - run: npm run format | |
| 23 | + - run: npm run build | |
| 24 | 24 | - run: npm install -g markdownlint-cli |
| 25 | 25 | - run: npm run markdownlint |
| 26 | 26 | - run: npm run shellcheck |
| 27 | 27 | - run: npm run yamllint |
| 28 | 28 | - run: npm run jslint |
| 29 | 29 | - run: npm run licenses |
| 30 | − - run: npm run build | |
| 30 | + - run: npm run format | |
| 31 | 31 | - name: Check if build left artifacts |
| 32 | 32 | run: git diff --exit-code |
modified
.github/workflows/test.yml
+1
−1
@@ -56,7 +56,7 @@ jobs:
| 56 | 56 | os: 'ubuntu-16.04' |
| 57 | 57 | - elixir-version: 'v1.4' |
| 58 | 58 | otp-version: '20' |
| 59 | − rebar3-version: '3.11' | |
| 59 | + rebar3-version: '3.6.0' | |
| 60 | 60 | os: 'ubuntu-18.04' |
| 61 | 61 | - elixir-version: 'v1.4' |
| 62 | 62 | otp-version: '20' |
modified
__tests__/setup-beam.test.js
+6
−6
@@ -154,18 +154,18 @@ async function testRebar3Versions() {
| 154 | 154 | let expected |
| 155 | 155 | let spec |
| 156 | 156 | |
| 157 | − spec = '3.13.x' | |
| 158 | − expected = '3.13.2' | |
| 157 | + spec = '3.10.x' | |
| 158 | + expected = '3.10.0' | |
| 159 | 159 | got = await setupElixir.getRebar3Version(spec) |
| 160 | 160 | assert.deepStrictEqual(got, expected) |
| 161 | 161 | |
| 162 | − spec = '3.13.2' | |
| 163 | − expected = '3.13.2' | |
| 162 | + spec = '3.10.0' | |
| 163 | + expected = '3.10.0' | |
| 164 | 164 | got = await setupElixir.getRebar3Version(spec) |
| 165 | 165 | assert.deepStrictEqual(got, expected) |
| 166 | 166 | |
| 167 | − spec = '3.13' | |
| 168 | − expected = '3.13.2' | |
| 167 | + spec = '3.10' | |
| 168 | + expected = '3.10.0' | |
| 169 | 169 | got = await setupElixir.getRebar3Version(spec) |
| 170 | 170 | assert.deepStrictEqual(got, expected) |
| 171 | 171 | } |
modified
dist/index.js
+1
−1
@@ -4859,7 +4859,7 @@ async function getElixirVersions() {
| 4859 | 4859 | |
| 4860 | 4860 | async function getRebar3Versions() { |
| 4861 | 4861 | const resultJSON = await get( |
| 4862 | − 'https://api.github.com/repos/erlang/rebar3/releases', | |
| 4862 | + 'https://api.github.com/repos/erlang/rebar3/releases?per_page=100', | |
| 4863 | 4863 | ) |
| 4864 | 4864 | const rebar3VersionsListing = JSON.parse(resultJSON) |
| 4865 | 4865 | .map((x) => x.tag_name) |
modified
src/setup-beam.js
+1
−1
@@ -223,7 +223,7 @@ async function getElixirVersions() {
| 223 | 223 | |
| 224 | 224 | async function getRebar3Versions() { |
| 225 | 225 | const resultJSON = await get( |
| 226 | − 'https://api.github.com/repos/erlang/rebar3/releases', | |
| 226 | + 'https://api.github.com/repos/erlang/rebar3/releases?per_page=100', | |
| 227 | 227 | ) |
| 228 | 228 | const rebar3VersionsListing = JSON.parse(resultJSON) |
| 229 | 229 | .map((x) => x.tag_name) |
Parents: e332dc6