Reduce size of dist (#26)

1f3954e · Paulo F. Oliveira · 2021-03-31 18:18

14 files +12 -157

Files changed

renamed
+0 −0

No textual hunks.

modified .gitignore
+1 −0
@@ -1 +1,2 @@
1 1 node_modules/**
2 +dist/.github/workflows
modified MATCHER_NOTICE.md
+3 −2
@@ -1,6 +1,7 @@
1 −# Matchers
1 +# Elixir Problem Matchers
2 2
3 −Problem matchers in [elixir.json](.github/elixir.json) are adapted from [here](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/package.json#L70-L118),
3 +Elixir Problem Matchers in [elixir-matchers.json](.github/elixir-matchers.json)
4 +are adapted from [here](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/package.json#L70-L118),
4 5 available under the [MIT license](https://github.com/fr1zle/vscode-elixir/blob/45eddb589acd7ac98e0c7305d1c2b24668ca709a/LICENSE.md):
5 6
6 7 MIT License
modified README.md
+2 −2
@@ -174,9 +174,9 @@ if System.get_env("GITHUB_ACTIONS") do
174 174 end
175 175 ```
176 176
177 −## Matchers
177 +## Elixir Problem Matchers
178 178
179 −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.
179 +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.
180 180
181 181 ## License
182 182
renamed
+0 −0

No textual hunks.

deleted dist/.github/workflows/ci.yml
+0 −32
@@ -1,32 +0,0 @@
1 −---
2 −name: ci
3 −
4 −on:
5 − push:
6 − branches:
7 − - main
8 − pull_request:
9 − branches:
10 − - main
11 −
12 −jobs:
13 − check_integrity:
14 − name: Make sure expected pre-release actions are performed
15 − runs-on: ubuntu-latest
16 − steps:
17 − - uses: actions/checkout@v2
18 − - uses: actions/setup-node@v1
19 − with:
20 − node-version: '12'
21 − - run: npm install -g npm
22 − - run: npm install
23 − - run: npm run format
24 − - run: npm install -g markdownlint-cli
25 − - run: npm run markdownlint
26 − - run: npm run shellcheck
27 − - run: npm run yamllint
28 − - run: npm run jslint
29 − - run: npm run licenses
30 − - run: npm run build
31 − - name: Check if build left artifacts
32 − run: git diff --exit-code
deleted dist/.github/workflows/test.yml
+0 −119
@@ -1,119 +0,0 @@
1 −---
2 −name: test
3 −
4 −on:
5 − push: {branches: main}
6 − pull_request: {branches: main}
7 − repository_dispatch:
8 − workflow_dispatch:
9 −
10 −jobs:
11 − unit_test:
12 − name: Pre-release unit tests
13 − runs-on: ubuntu-latest
14 − steps:
15 − - uses: actions/checkout@v2
16 − - uses: actions/setup-node@v1
17 − with: {node-version: '12'}
18 − - run: npm ci
19 − - run: npm test
20 −
21 − integration_test:
22 − name: >
23 − Pre-release integration tests
24 − (Erlang/OTP ${{matrix.pair.otp-version}},
25 − Elixir ${{matrix.pair.elixir-version}},
26 − rebar3 ${{matrix.pair.rebar3-version}})
27 − runs-on: ubuntu-18.04
28 − strategy:
29 − fail-fast: false
30 − matrix:
31 − pair:
32 − # Full Versions
33 − - otp-version: '22.0'
34 − elixir-version: '1.9.1'
35 − - otp-version: '22.3.4'
36 − rebar3-version: '3.14.4'
37 − # Semver ranges
38 − - otp-version: '21.x'
39 − elixir-version: '<1.9.1'
40 − - otp-version: '21.x'
41 − rebar3-version: '3.14.4'
42 − # Branches
43 − - otp-version: '22.0'
44 − elixir-version: master
45 − - otp-version: 'master'
46 − elixir-version: '1.11.3'
47 − # Pre-releases
48 − - otp-version: '23.0'
49 − elixir-version: '1.11.0-rc.0'
50 − # Fallback to Elixir (with no OTP)
51 − - otp-version: '24.0-rc1'
52 − elixir-version: '1.9.3'
53 − # Miscellaneous combos
54 − - elixir-version: 'master'
55 − otp-version: '22.3'
56 − - elixir-version: 'master'
57 − otp-version: '22'
58 − - elixir-version: 'master'
59 − otp-version: '^22'
60 − - elixir-version: 'master'
61 − otp-version: '22'
62 − - elixir-version: '1.6.5'
63 − otp-version: 'maint-21'
64 − - elixir-version: 'v1.6.5'
65 − otp-version: 'maint-21'
66 − - elixir-version: 'v1.9.x'
67 − otp-version: '21.1'
68 − - elixir-version: '1.9.x'
69 − otp-version: '21'
70 − - elixir-version: 'v1.8.x'
71 − otp-version: '22'
72 − - elixir-version: 'v1.8.x'
73 − otp-version: '23.1'
74 − - elixir-version: 'v1.8'
75 − otp-version: '^22.3'
76 − - elixir-version: 'v1.10'
77 − otp-version: '21.x'
78 − - elixir-version: 'v1.x'
79 − otp-version: 'master'
80 − - elixir-version: 'v1.11.0-rc.0'
81 − otp-version: '23'
82 − - elixir-version: 'v1.11.0-rc.0'
83 − otp-version: '23.0'
84 − - elixir-version: 'v1.11.0-rc.0'
85 − otp-version: 'master'
86 − steps:
87 − - uses: actions/checkout@v2
88 − - name: Use erlef/setup-beam
89 − id: setup-beam
90 − uses: ./
91 − with:
92 − otp-version: ${{matrix.pair.otp-version}}
93 − elixir-version: ${{matrix.pair.elixir-version}}
94 − rebar3-version: ${{matrix.pair.rebar3-version}}
95 − - name: Erlang/OTP version (action)
96 − run: echo "Erlang/OTP ${{steps.setup-beam.outputs.otp-version}}"
97 − - name: Elixir version (action)
98 − run: echo "Elixir ${{steps.setup-beam.outputs.elixir-version}}"
99 − if: ${{matrix.pair.elixir-version}}
100 − - name: rebar3 version (action)
101 − run: echo "rebar3 ${{steps.setup-beam.outputs.rebar3-version}}"
102 − if: ${{matrix.pair.rebar3-version}}
103 − - name: mix version and help (CLI)
104 − run: |
105 − mix -v
106 − mix help local.rebar
107 − mix help local.hex
108 − if: ${{matrix.pair.elixir-version}}
109 − - name: Run Mix project tests
110 − run: |
111 − cd test-projects/mix
112 − mix deps.get
113 − mix test
114 − if: ${{matrix.pair.elixir-version}}
115 − - name: Run rebar3 project tests
116 − run: |
117 − cd test-projects/rebar3
118 − rebar3 as test do xref,dialyzer,ct,cover
119 − if: ${{matrix.pair.rebar3-version}}
modified dist/index.js
+3 −1
@@ -4660,7 +4660,9 @@ async function maybeInstallElixir(elixirSpec, otpVersion) {
4660 4660 await installer.installElixir(elixirVersion)
4661 4661 core.setOutput('elixir-version', elixirVersion)
4662 4662 const matchersPath = __nccwpck_require__.ab + ".github"
4663 − console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`)
4663 + console.log(
4664 + `##[add-matcher]${path.join(matchersPath, 'elixir-matchers.json')}`,
4665 + )
4664 4666 prependToPath(`${process.env.RUNNER_TEMP}/.setup-beam/elixir/bin`)
4665 4667 console.log('##[endgroup]')
4666 4668
modified src/setup-beam.js
+3 −1
@@ -53,7 +53,9 @@ async function maybeInstallElixir(elixirSpec, otpVersion) {
53 53 await installer.installElixir(elixirVersion)
54 54 core.setOutput('elixir-version', elixirVersion)
55 55 const matchersPath = path.join(__dirname, '..', '.github')
56 − console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`)
56 + console.log(
57 + `##[add-matcher]${path.join(matchersPath, 'elixir-matchers.json')}`,
58 + )
57 59 prependToPath(`${process.env.RUNNER_TEMP}/.setup-beam/elixir/bin`)
58 60 console.log('##[endgroup]')
59 61

Parents: 46b1995