mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 07:06:07 +00:00
Reduce size of dist (#26)
This commit is contained in:
committed by
GitHub
parent
46b1995d92
commit
1f3954e2a3
@@ -1 +1,2 @@
|
|||||||
node_modules/**
|
node_modules/**
|
||||||
|
dist/.github/workflows
|
||||||
|
|||||||
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
# Matchers
|
# Elixir Problem Matchers
|
||||||
|
|
||||||
Problem matchers in [elixir.json](.github/elixir.json) are adapted from [here](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/package.json#L70-L118),
|
Elixir Problem Matchers in [elixir-matchers.json](.github/elixir-matchers.json)
|
||||||
|
are adapted from [here](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/package.json#L70-L118),
|
||||||
available under the [MIT license](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/LICENSE.md):
|
available under the [MIT license](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/LICENSE.md):
|
||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
|
|||||||
@@ -174,9 +174,9 @@ if System.get_env("GITHUB_ACTIONS") do
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
## Matchers
|
## Elixir Problem Matchers
|
||||||
|
|
||||||
The problem matchers in this repository are adapted from [here](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/package.json#L70-L118). See [MATCHER_NOTICE](MATCHER_NOTICE.md) for license details.
|
The Elixir Problem Matchers in this repository are adapted from [here](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/package.json#L70-L118). See [MATCHER_NOTICE](MATCHER_NOTICE.md) for license details.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
Vendored
-32
@@ -1,32 +0,0 @@
|
|||||||
---
|
|
||||||
name: ci
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check_integrity:
|
|
||||||
name: Make sure expected pre-release actions are performed
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: '12'
|
|
||||||
- run: npm install -g npm
|
|
||||||
- run: npm install
|
|
||||||
- run: npm run format
|
|
||||||
- run: npm install -g markdownlint-cli
|
|
||||||
- run: npm run markdownlint
|
|
||||||
- run: npm run shellcheck
|
|
||||||
- run: npm run yamllint
|
|
||||||
- run: npm run jslint
|
|
||||||
- run: npm run licenses
|
|
||||||
- run: npm run build
|
|
||||||
- name: Check if build left artifacts
|
|
||||||
run: git diff --exit-code
|
|
||||||
Vendored
-119
@@ -1,119 +0,0 @@
|
|||||||
---
|
|
||||||
name: test
|
|
||||||
|
|
||||||
on:
|
|
||||||
push: {branches: main}
|
|
||||||
pull_request: {branches: main}
|
|
||||||
repository_dispatch:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
unit_test:
|
|
||||||
name: Pre-release unit tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
with: {node-version: '12'}
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm test
|
|
||||||
|
|
||||||
integration_test:
|
|
||||||
name: >
|
|
||||||
Pre-release integration tests
|
|
||||||
(Erlang/OTP ${{matrix.pair.otp-version}},
|
|
||||||
Elixir ${{matrix.pair.elixir-version}},
|
|
||||||
rebar3 ${{matrix.pair.rebar3-version}})
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
pair:
|
|
||||||
# Full Versions
|
|
||||||
- otp-version: '22.0'
|
|
||||||
elixir-version: '1.9.1'
|
|
||||||
- otp-version: '22.3.4'
|
|
||||||
rebar3-version: '3.14.4'
|
|
||||||
# Semver ranges
|
|
||||||
- otp-version: '21.x'
|
|
||||||
elixir-version: '<1.9.1'
|
|
||||||
- otp-version: '21.x'
|
|
||||||
rebar3-version: '3.14.4'
|
|
||||||
# Branches
|
|
||||||
- otp-version: '22.0'
|
|
||||||
elixir-version: master
|
|
||||||
- otp-version: 'master'
|
|
||||||
elixir-version: '1.11.3'
|
|
||||||
# Pre-releases
|
|
||||||
- otp-version: '23.0'
|
|
||||||
elixir-version: '1.11.0-rc.0'
|
|
||||||
# Fallback to Elixir (with no OTP)
|
|
||||||
- otp-version: '24.0-rc1'
|
|
||||||
elixir-version: '1.9.3'
|
|
||||||
# Miscellaneous combos
|
|
||||||
- elixir-version: 'master'
|
|
||||||
otp-version: '22.3'
|
|
||||||
- elixir-version: 'master'
|
|
||||||
otp-version: '22'
|
|
||||||
- elixir-version: 'master'
|
|
||||||
otp-version: '^22'
|
|
||||||
- elixir-version: 'master'
|
|
||||||
otp-version: '22'
|
|
||||||
- elixir-version: '1.6.5'
|
|
||||||
otp-version: 'maint-21'
|
|
||||||
- elixir-version: 'v1.6.5'
|
|
||||||
otp-version: 'maint-21'
|
|
||||||
- elixir-version: 'v1.9.x'
|
|
||||||
otp-version: '21.1'
|
|
||||||
- elixir-version: '1.9.x'
|
|
||||||
otp-version: '21'
|
|
||||||
- elixir-version: 'v1.8.x'
|
|
||||||
otp-version: '22'
|
|
||||||
- elixir-version: 'v1.8.x'
|
|
||||||
otp-version: '23.1'
|
|
||||||
- elixir-version: 'v1.8'
|
|
||||||
otp-version: '^22.3'
|
|
||||||
- elixir-version: 'v1.10'
|
|
||||||
otp-version: '21.x'
|
|
||||||
- elixir-version: 'v1.x'
|
|
||||||
otp-version: 'master'
|
|
||||||
- elixir-version: 'v1.11.0-rc.0'
|
|
||||||
otp-version: '23'
|
|
||||||
- elixir-version: 'v1.11.0-rc.0'
|
|
||||||
otp-version: '23.0'
|
|
||||||
- elixir-version: 'v1.11.0-rc.0'
|
|
||||||
otp-version: 'master'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Use erlef/setup-beam
|
|
||||||
id: setup-beam
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
otp-version: ${{matrix.pair.otp-version}}
|
|
||||||
elixir-version: ${{matrix.pair.elixir-version}}
|
|
||||||
rebar3-version: ${{matrix.pair.rebar3-version}}
|
|
||||||
- name: Erlang/OTP version (action)
|
|
||||||
run: echo "Erlang/OTP ${{steps.setup-beam.outputs.otp-version}}"
|
|
||||||
- name: Elixir version (action)
|
|
||||||
run: echo "Elixir ${{steps.setup-beam.outputs.elixir-version}}"
|
|
||||||
if: ${{matrix.pair.elixir-version}}
|
|
||||||
- name: rebar3 version (action)
|
|
||||||
run: echo "rebar3 ${{steps.setup-beam.outputs.rebar3-version}}"
|
|
||||||
if: ${{matrix.pair.rebar3-version}}
|
|
||||||
- name: mix version and help (CLI)
|
|
||||||
run: |
|
|
||||||
mix -v
|
|
||||||
mix help local.rebar
|
|
||||||
mix help local.hex
|
|
||||||
if: ${{matrix.pair.elixir-version}}
|
|
||||||
- name: Run Mix project tests
|
|
||||||
run: |
|
|
||||||
cd test-projects/mix
|
|
||||||
mix deps.get
|
|
||||||
mix test
|
|
||||||
if: ${{matrix.pair.elixir-version}}
|
|
||||||
- name: Run rebar3 project tests
|
|
||||||
run: |
|
|
||||||
cd test-projects/rebar3
|
|
||||||
rebar3 as test do xref,dialyzer,ct,cover
|
|
||||||
if: ${{matrix.pair.rebar3-version}}
|
|
||||||
Vendored
+3
-1
@@ -4660,7 +4660,9 @@ async function maybeInstallElixir(elixirSpec, otpVersion) {
|
|||||||
await installer.installElixir(elixirVersion)
|
await installer.installElixir(elixirVersion)
|
||||||
core.setOutput('elixir-version', elixirVersion)
|
core.setOutput('elixir-version', elixirVersion)
|
||||||
const matchersPath = __nccwpck_require__.ab + ".github"
|
const matchersPath = __nccwpck_require__.ab + ".github"
|
||||||
console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`)
|
console.log(
|
||||||
|
`##[add-matcher]${path.join(matchersPath, 'elixir-matchers.json')}`,
|
||||||
|
)
|
||||||
prependToPath(`${process.env.RUNNER_TEMP}/.setup-beam/elixir/bin`)
|
prependToPath(`${process.env.RUNNER_TEMP}/.setup-beam/elixir/bin`)
|
||||||
console.log('##[endgroup]')
|
console.log('##[endgroup]')
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -53,7 +53,9 @@ async function maybeInstallElixir(elixirSpec, otpVersion) {
|
|||||||
await installer.installElixir(elixirVersion)
|
await installer.installElixir(elixirVersion)
|
||||||
core.setOutput('elixir-version', elixirVersion)
|
core.setOutput('elixir-version', elixirVersion)
|
||||||
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-matchers.json')}`,
|
||||||
|
)
|
||||||
prependToPath(`${process.env.RUNNER_TEMP}/.setup-beam/elixir/bin`)
|
prependToPath(`${process.env.RUNNER_TEMP}/.setup-beam/elixir/bin`)
|
||||||
console.log('##[endgroup]')
|
console.log('##[endgroup]')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user