Compare commits

...
5 Commits
8 changed files with 50 additions and 9 deletions
+9 -1
View File
@@ -1,7 +1,14 @@
--- ---
name: action name: action
on: [push, workflow_dispatch] on:
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: {}
env: env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -27,6 +34,7 @@ jobs:
git add dist/index.js git add dist/index.js
git commit -m "Automation: update setup-beam version output to ${SHA}" git commit -m "Automation: update setup-beam version output to ${SHA}"
git push origin main git push origin main
check_integrity: check_integrity:
name: Expected local npm actions name: Expected local npm actions
runs-on: ubuntu-latest runs-on: ubuntu-latest
+8 -1
View File
@@ -1,7 +1,14 @@
--- ---
name: hexpm-mirrors name: hexpm-mirrors
on: [push, workflow_dispatch] on:
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: {}
jobs: jobs:
test-failing-first-mirror: test-failing-first-mirror:
+9 -1
View File
@@ -1,7 +1,14 @@
--- ---
name: ubuntu name: ubuntu
on: [push, workflow_dispatch] on:
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: {}
jobs: jobs:
integration_test: integration_test:
@@ -174,6 +181,7 @@ jobs:
mix escript.install --force ${{matrix.combo.escript_packages}} mix escript.install --force ${{matrix.combo.escript_packages}}
${{matrix.combo.escript_script}} ${{matrix.combo.escript_script}}
if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}} if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}}
environment_variables: environment_variables:
name: Environment variables name: Environment variables
runs-on: ${{matrix.combo.os}} runs-on: ${{matrix.combo.os}}
+9 -1
View File
@@ -1,7 +1,14 @@
--- ---
name: windows name: windows
on: [push, workflow_dispatch] on:
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: {}
jobs: jobs:
integration_test: integration_test:
@@ -112,6 +119,7 @@ jobs:
mix escript.install --force ${{matrix.combo.escript_packages}} mix escript.install --force ${{matrix.combo.escript_packages}}
${{matrix.combo.escript_script}} ${{matrix.combo.escript_script}}
if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}} if: ${{matrix.combo.escript_packages && matrix.combo.escript_script}}
environment_variables: environment_variables:
name: Environment variables name: Environment variables
runs-on: ${{matrix.combo.os}} runs-on: ${{matrix.combo.os}}
+1 -1
View File
@@ -118,7 +118,7 @@ THE SOFTWARE.
----- -----
The following software may be included in this product: @fastify/busboy. A copy of the source code may be downloaded from https://github.com/fastify/busboy.git. This software contains the following license and notice below: The following software may be included in this product: @fastify/busboy. A copy of the source code may be downloaded from git+https://github.com/fastify/busboy.git. This software contains the following license and notice below:
Copyright Brian White. All rights reserved. Copyright Brian White. All rights reserved.
+2 -2
View File
@@ -9885,7 +9885,7 @@ async function main() {
await maybeInstallRebar3(rebar3Spec) await maybeInstallRebar3(rebar3Spec)
// undefined is replaced by a function, post- main branch merge // undefined is replaced by a function, post- main branch merge
const setupBeamVersion = 'eb31c4c' const setupBeamVersion = '4f55815'
core.setOutput('setup-beam-version', setupBeamVersion) core.setOutput('setup-beam-version', setupBeamVersion)
} }
@@ -10422,7 +10422,7 @@ alongside ${alternativeName}=${alternativeValue} \
} }
function parseVersionFile(versionFilePath0) { function parseVersionFile(versionFilePath0) {
const versionFilePath = path.join( const versionFilePath = path.resolve(
process.env.GITHUB_WORKSPACE, process.env.GITHUB_WORKSPACE,
versionFilePath0, versionFilePath0,
) )
+2 -2
View File
@@ -49,7 +49,7 @@ async function main() {
await maybeInstallRebar3(rebar3Spec) await maybeInstallRebar3(rebar3Spec)
// undefined is replaced by a function, post- main branch merge // undefined is replaced by a function, post- main branch merge
const setupBeamVersion = 'eb31c4c' const setupBeamVersion = '4f55815'
core.setOutput('setup-beam-version', setupBeamVersion) core.setOutput('setup-beam-version', setupBeamVersion)
} }
@@ -591,7 +591,7 @@ alongside ${alternativeName}=${alternativeValue} \
} }
function parseVersionFile(versionFilePath0) { function parseVersionFile(versionFilePath0) {
const versionFilePath = path.join( const versionFilePath = path.resolve(
process.env.GITHUB_WORKSPACE, process.env.GITHUB_WORKSPACE,
versionFilePath0, versionFilePath0,
) )
+10
View File
@@ -8,6 +8,8 @@ simulateInput('hexpm-mirrors', 'https://builds.hex.pm', { multiline: true })
const assert = require('assert') const assert = require('assert')
const fs = require('fs') const fs = require('fs')
const os = require('os')
const path = require('path')
const core = require('@actions/core') const core = require('@actions/core')
const setupBeam = require('../src/setup-beam') const setupBeam = require('../src/setup-beam')
const { problemMatcher } = require('../matchers/elixir-matchers.json') const { problemMatcher } = require('../matchers/elixir-matchers.json')
@@ -535,6 +537,14 @@ rebar ${rebar3}`
assert.strictEqual(appVersions.get('erlang'), erlang) assert.strictEqual(appVersions.get('erlang'), erlang)
assert.strictEqual(appVersions.get('elixir'), elixir) assert.strictEqual(appVersions.get('elixir'), elixir)
const absoluteFilename = path.join(os.tmpdir(), '.tool-versions')
fs.writeFileSync(absoluteFilename, toolVersions)
process.env.GITHUB_WORKSPACE = process.cwd()
const absoluteAppVersions = setupBeam.parseVersionFile(absoluteFilename)
assert.strictEqual(absoluteAppVersions.get('erlang'), erlang)
assert.strictEqual(absoluteAppVersions.get('elixir'), elixir)
assert.ok(async () => { assert.ok(async () => {
await setupBeam.install('otp', { toolVersion: erlang }) await setupBeam.install('otp', { toolVersion: erlang })
}) })