16 Commits

Author SHA1 Message Date
Jonathan Clem
230dd25d80 v1.4.0 2020-08-05 11:02:48 -04:00
Jonathan Clem
4f853c6bfd Merge pull request #38 from actions/remove-yarn
Remove yarn.lock/yarn instructions
2020-08-05 11:00:35 -04:00
Jonathan Clem
b7580a9be3 Remove yarn.lock/yarn instructions 2020-08-05 10:59:58 -04:00
Jonathan Clem
96cd61eab7 Merge pull request #36 from doughsay/outputs
Adds exact installed versions of Elixir and OTP as outputs
2020-08-05 10:59:19 -04:00
Jonathan Clem
d6ff32ddb2 Add workflow_dispatch to workflow file 2020-08-05 10:56:08 -04:00
Jonathan Clem
60977d4297 Add runtime outputs to workflow file 2020-08-05 10:55:56 -04:00
Jonathan Clem
9b45d1796c Revert "Remove yarn.lock"
This reverts commit 51cf0d8216.
2020-08-05 10:53:47 -04:00
Jonathan Clem
51cf0d8216 Remove yarn.lock 2020-08-05 10:52:49 -04:00
Jonathan Clem
df1bc16e01 Use core.setOutput to set output 2020-08-05 10:52:42 -04:00
Jonathan Clem
693ea64d7f Update licensed.yml 2020-08-04 12:27:18 -04:00
Chris Dosé
24f06ac7ee update actions.yml to include outputs 2020-07-25 23:31:59 -07:00
Chris Dosé
1148b8ff81 set installed versions as outputs 2020-07-25 23:24:11 -07:00
Jonathan Clem
ceecbf34d4 Replace default branch refs with main 2020-07-14 16:32:14 -04:00
Jonathan Clem
2071beb570 v1.3.0 2020-05-18 16:43:48 -04:00
Jonathan Clem
6e6e6bfc68 Merge pull request #28 from actions/fix-24
Install tools into RUNNER_TEMP/.setup-elixir
2020-05-18 16:40:25 -04:00
Jonathan Clem
c1e55db782 Install tools into RUNNER_TEMP/.setup-elixir 2020-05-18 16:38:30 -04:00
15 changed files with 39 additions and 78 deletions

View File

@@ -1,9 +1,10 @@
name: Licensed name: Licensed
on: on:
push: {branches: master} push: {branches: main}
pull_request: {branches: master} pull_request: {branches: main}
repository_dispatch: repository_dispatch:
workflow_dispatch:
jobs: jobs:
test: test:
@@ -19,7 +20,7 @@ jobs:
- run: npm ci - run: npm ci
- name: Install licensed - name: Install licensed
run: |- run: |-
cd /tmp cd $RUNNER_TEMP
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.9.2/licensed-2.9.2-linux-x64.tar.gz curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.9.2/licensed-2.9.2-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed sudo mv licensed /usr/local/bin/licensed

View File

@@ -1,9 +1,10 @@
name: Test name: Test
on: on:
push: {branches: master} push: {branches: main}
pull_request: {branches: master} pull_request: {branches: main}
repository_dispatch: repository_dispatch:
workflow_dispatch:
jobs: jobs:
test: test:
@@ -28,10 +29,13 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use actions/setup-elixir - name: Use actions/setup-elixir
id: setup-elixir
uses: ./ uses: ./
with: with:
otp-version: ${{matrix.pair.otp-version}} otp-version: ${{matrix.pair.otp-version}}
elixir-version: ${{matrix.pair.elixir-version}} elixir-version: ${{matrix.pair.elixir-version}}
- name: Output runtime versions
run: echo "Elixir ${{steps.setup-elixir.outputs.elixir-version}} / OTP ${{steps.setup-elixir.outputs.otp-version}}"
- name: Run Mix project tests - name: Run Mix project tests
run: |- run: |-
cd test-project cd test-project

View File

@@ -2,7 +2,7 @@
[fork]: https://github.com/actions/setup-elixir/fork [fork]: https://github.com/actions/setup-elixir/fork
[pr]: https://github.com/actions/setup-elixir/compare [pr]: https://github.com/actions/setup-elixir/compare
[code-of-conduct]: https://github.com/actions/setup-elixir/blob/master/CODE_OF_CONDUCT.md [code-of-conduct]: https://github.com/actions/setup-elixir/blob/main/CODE_OF_CONDUCT.md
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great. Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
@@ -13,7 +13,7 @@ Please note that this project is released with a [Contributor Code of Conduct][c
## Submitting a pull request ## Submitting a pull request
1. [Fork][fork] and clone the repository 1. [Fork][fork] and clone the repository
1. Configure and install the dependencies: `yarn` 1. Configure and install the dependencies: `npm install`
1. Create a new branch: `git checkout -b my-branch-name` 1. Create a new branch: `git checkout -b my-branch-name`
1. Make your change, add tests, and make sure the tests still pass 1. Make your change, add tests, and make sure the tests still pass
1. Push to your fork and [submit a pull request][pr] 1. Push to your fork and [submit a pull request][pr]

View File

@@ -15,6 +15,11 @@ inputs:
install-rebar: install-rebar:
description: Whether to install Rebar description: Whether to install Rebar
default: true default: true
outputs:
elixir-version:
description: Exact version of Elixir that was installed
otp-version:
description: Exact version of OTP that was installed
runs: runs:
using: node12 using: node12
main: dist/index.js main: dist/index.js

View File

@@ -1,9 +1,10 @@
name: Licensed name: Licensed
on: on:
push: {branches: master} push: {branches: main}
pull_request: {branches: master} pull_request: {branches: main}
repository_dispatch: repository_dispatch:
workflow_dispatch:
jobs: jobs:
test: test:
@@ -19,7 +20,7 @@ jobs:
- run: npm ci - run: npm ci
- name: Install licensed - name: Install licensed
run: |- run: |-
cd /tmp cd $RUNNER_TEMP
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.9.2/licensed-2.9.2-linux-x64.tar.gz curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.9.2/licensed-2.9.2-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed sudo mv licensed /usr/local/bin/licensed

View File

@@ -1,9 +1,10 @@
name: Test name: Test
on: on:
push: {branches: master} push: {branches: main}
pull_request: {branches: master} pull_request: {branches: main}
repository_dispatch: repository_dispatch:
workflow_dispatch:
jobs: jobs:
test: test:
@@ -28,10 +29,13 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use actions/setup-elixir - name: Use actions/setup-elixir
id: setup-elixir
uses: ./ uses: ./
with: with:
otp-version: ${{matrix.pair.otp-version}} otp-version: ${{matrix.pair.otp-version}}
elixir-version: ${{matrix.pair.elixir-version}} elixir-version: ${{matrix.pair.elixir-version}}
- name: Output runtime versions
run: echo "Elixir ${{steps.setup-elixir.outputs.elixir-version}} / OTP ${{steps.setup-elixir.outputs.otp-version}}"
- name: Run Mix project tests - name: Run Mix project tests
run: |- run: |-
cd test-project cd test-project

4
dist/index.js vendored
View File

@@ -3266,13 +3266,15 @@ async function main() {
await installElixir(elixirVersion, otpMajor) await installElixir(elixirVersion, otpMajor)
console.log(`##[endgroup]`) console.log(`##[endgroup]`)
process.env.PATH = `/tmp/.setup-elixir/elixir/bin:/tmp/.setup-elixir/otp/bin:${process.env.PATH}` process.env.PATH = `${process.env.RUNNER_TEMP}/.setup-elixir/elixir/bin:${process.env.RUNNER_TEMP}/.setup-elixir/otp/bin:${process.env.PATH}`
if (installRebar === 'true') await exec('mix local.rebar --force') if (installRebar === 'true') await exec('mix local.rebar --force')
if (installHex === 'true') await exec('mix local.hex --force') if (installHex === 'true') await exec('mix local.hex --force')
const matchersPath = __webpack_require__.ab + ".github" const matchersPath = __webpack_require__.ab + ".github"
console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`) console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`)
core.setOutput('otp-version', otpVersion)
core.setOutput('elixir-version', elixirVersion)
} }
function checkPlatform() { function checkPlatform() {

2
dist/install-elixir vendored
View File

@@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
cd /tmp cd $RUNNER_TEMP
wget -q https://repo.hex.pm/builds/elixir/${1}${2}.zip wget -q https://repo.hex.pm/builds/elixir/${1}${2}.zip
unzip -d .setup-elixir/elixir ${1}${2}.zip unzip -d .setup-elixir/elixir ${1}${2}.zip

2
dist/install-otp vendored
View File

@@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
cd /tmp cd $RUNNER_TEMP
wget -q -O otp.tar.gz https://repo.hex.pm/builds/otp/ubuntu-14.04/OTP-${1}.tar.gz wget -q -O otp.tar.gz https://repo.hex.pm/builds/otp/ubuntu-14.04/OTP-${1}.tar.gz
mkdir -p .setup-elixir/otp mkdir -p .setup-elixir/otp

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "setup-elixir", "name": "setup-elixir",
"version": "0.0.0", "version": "1.4.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "setup-elixir", "name": "setup-elixir",
"version": "0.0.0", "version": "1.4.0",
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"scripts": { "scripts": {

View File

@@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
cd /tmp cd $RUNNER_TEMP
wget -q https://repo.hex.pm/builds/elixir/${1}${2}.zip wget -q https://repo.hex.pm/builds/elixir/${1}${2}.zip
unzip -d .setup-elixir/elixir ${1}${2}.zip unzip -d .setup-elixir/elixir ${1}${2}.zip

View File

@@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
cd /tmp cd $RUNNER_TEMP
wget -q -O otp.tar.gz https://repo.hex.pm/builds/otp/ubuntu-14.04/OTP-${1}.tar.gz wget -q -O otp.tar.gz https://repo.hex.pm/builds/otp/ubuntu-14.04/OTP-${1}.tar.gz
mkdir -p .setup-elixir/otp mkdir -p .setup-elixir/otp

View File

@@ -33,13 +33,15 @@ async function main() {
await installElixir(elixirVersion, otpMajor) await installElixir(elixirVersion, otpMajor)
console.log(`##[endgroup]`) console.log(`##[endgroup]`)
process.env.PATH = `/tmp/.setup-elixir/elixir/bin:/tmp/.setup-elixir/otp/bin:${process.env.PATH}` process.env.PATH = `${process.env.RUNNER_TEMP}/.setup-elixir/elixir/bin:${process.env.RUNNER_TEMP}/.setup-elixir/otp/bin:${process.env.PATH}`
if (installRebar === 'true') await exec('mix local.rebar --force') if (installRebar === 'true') await exec('mix local.rebar --force')
if (installHex === 'true') await exec('mix local.hex --force') if (installHex === 'true') await exec('mix local.hex --force')
const matchersPath = path.join(__dirname, '..', '.github') const matchersPath = path.join(__dirname, '..', '.github')
console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`) console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`)
core.setOutput('otp-version', otpVersion)
core.setOutput('elixir-version', elixirVersion)
} }
function checkPlatform() { function checkPlatform() {

View File

@@ -1,58 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@actions/core@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.0.0.tgz#4a090a2e958cc300b9ea802331034d5faf42d239"
integrity sha512-aMIlkx96XH4E/2YZtEOeyrYQfhlas9jIRkfGPqMwXD095Rdkzo4lB6ZmbxPQSzD+e1M+Xsm98ZhuSMYGv/AlqA==
"@actions/exec@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@actions/exec/-/exec-1.0.0.tgz#70c8b698c9baa02965c07da5f0b185ca56f0a955"
integrity sha512-nquH0+XKng+Ll7rZfCojN7NWSbnGh+ltwUJhzfbLkmOJgxocGX2/yXcZLMyT9fa7+tByEow/NSTrBExNlEj9fw==
"@actions/io@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.0.0.tgz#379454174660623bb5b3bce0be8b9e2285a62bcb"
integrity sha512-ezrJSRdqtXtdx1WXlfYL85+40F7gB39jCK9P0jZVODW3W6xUYmu6ZOEc/UmmElUwhRyDRm1R4yNZu1Joq2kuQg==
"@actions/tool-cache@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@actions/tool-cache/-/tool-cache-1.1.0.tgz#1a0e29f244f2b5c6989fc264581068689f9c219e"
integrity sha512-Oe/R1Gxv0G699OUL9ypxk9cTwHf1uXHhpcK7kpZt8d/Sbw915ktMkfxXt9+awOfLDwyl54sLi86KGCuSvnRuIQ==
dependencies:
"@actions/core" "^1.0.0"
"@actions/exec" "^1.0.0"
"@actions/io" "^1.0.0"
semver "^6.1.0"
typed-rest-client "^1.4.0"
uuid "^3.3.2"
semver@^6.1.0, semver@^6.3.0:
version "6.3.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
tunnel@0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.4.tgz#2d3785a158c174c9a16dc2c046ec5fc5f1742213"
integrity sha1-LTeFoVjBdMmhbcLARuxfxfF0IhM=
typed-rest-client@^1.4.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/typed-rest-client/-/typed-rest-client-1.5.0.tgz#c0dda6e775b942fd46a2d99f2160a94953206fc2"
integrity sha512-DVZRlmsfnTjp6ZJaatcdyvvwYwbWvR4YDNFDqb+qdTxpvaVP99YCpBkA8rxsLtAPjBVoDe4fNsnMIdZTiPuKWg==
dependencies:
tunnel "0.0.4"
underscore "1.8.3"
underscore@1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022"
integrity sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=
uuid@^3.3.2:
version "3.3.3"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866"
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==