mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 15:16:08 +00:00
Bump @actions/exec from 1.1.1 to 3.0.0 (#405)
* Bump @actions/exec from 1.1.1 to 3.0.0 Bumps [@actions/exec](https://github.com/actions/toolkit/tree/HEAD/packages/exec) from 1.1.1 to 3.0.0. - [Changelog](https://github.com/actions/toolkit/blob/main/packages/exec/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/exec) --- updated-dependencies: - dependency-name: "@actions/exec" dependency-version: 3.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Modernize JS somewhat --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
This commit is contained in:
@@ -71,6 +71,8 @@ jobs:
|
|||||||
node-version: '20'
|
node-version: '20'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
env:
|
||||||
|
NODE_ENV: test
|
||||||
- name: .tool-versions test
|
- name: .tool-versions test
|
||||||
id: setup-beam
|
id: setup-beam
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -90,6 +92,8 @@ jobs:
|
|||||||
node-version: '20'
|
node-version: '20'
|
||||||
- run: npm install --production
|
- run: npm install --production
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
env:
|
||||||
|
NODE_ENV: test
|
||||||
- name: .tool-versions test
|
- name: .tool-versions test
|
||||||
id: setup-beam
|
id: setup-beam
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -109,3 +113,5 @@ jobs:
|
|||||||
node-version: '20'
|
node-version: '20'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
env:
|
||||||
|
NODE_ENV: test
|
||||||
|
|||||||
+3
-2
@@ -1,2 +1,3 @@
|
|||||||
node_modules/**
|
/node_modules
|
||||||
test/.tool-versions
|
/test/.tool-versions
|
||||||
|
/dist/package.json
|
||||||
|
|||||||
Vendored
+4329
-2056
File diff suppressed because it is too large
Load Diff
+19
-22
@@ -1,30 +1,27 @@
|
|||||||
import js from '@eslint/js'
|
import js from '@eslint/js'
|
||||||
import globals from 'globals'
|
import globals from 'globals'
|
||||||
import { defineConfig } from 'eslint/config'
|
import yml from 'eslint-plugin-yml'
|
||||||
import eslintPluginYml from 'eslint-plugin-yml'
|
import yamlParser from 'yaml-eslint-parser'
|
||||||
|
|
||||||
export default defineConfig([
|
export default [
|
||||||
...eslintPluginYml.configs['flat/recommended'],
|
js.configs.recommended,
|
||||||
{
|
{
|
||||||
extends: ['js/recommended'],
|
languageOptions: {
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
sourceType: 'module',
|
||||||
|
globals: globals.node,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['**/*.yml'],
|
||||||
|
languageOptions: {
|
||||||
|
parser: yamlParser,
|
||||||
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
js,
|
yml,
|
||||||
},
|
},
|
||||||
languageOptions: {
|
rules: {
|
||||||
ecmaVersion: 2022,
|
...yml.configs.recommended.rules,
|
||||||
globals: {
|
|
||||||
...globals.node,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
]
|
||||||
extends: eslintPluginYml.configs['flat/recommended'],
|
|
||||||
files: ['*.yml'],
|
|
||||||
languageOptions: {
|
|
||||||
parserOptions: {
|
|
||||||
parser: 'yaml-eslint-parser',
|
|
||||||
defaultYAMLVersion: '1.2',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
])
|
|
||||||
|
|||||||
Generated
+35
-5
@@ -8,7 +8,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.11.1",
|
"@actions/core": "1.11.1",
|
||||||
"@actions/exec": "1.1.1",
|
"@actions/exec": "3.0.0",
|
||||||
"@actions/tool-cache": "2.0.2",
|
"@actions/tool-cache": "2.0.2",
|
||||||
"csv-parse": "6.1.0",
|
"csv-parse": "6.1.0",
|
||||||
"lodash": "4.17.23",
|
"lodash": "4.17.23",
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
"@actions/http-client": "^2.0.1"
|
"@actions/http-client": "^2.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/exec": {
|
"node_modules/@actions/core/node_modules/@actions/exec": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz",
|
||||||
"integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==",
|
"integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==",
|
||||||
@@ -48,6 +48,21 @@
|
|||||||
"@actions/io": "^1.0.1"
|
"@actions/io": "^1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@actions/core/node_modules/@actions/io": {
|
||||||
|
"version": "1.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz",
|
||||||
|
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/@actions/exec": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@actions/io": "^3.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@actions/http-client": {
|
"node_modules/@actions/http-client": {
|
||||||
"version": "2.2.3",
|
"version": "2.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz",
|
||||||
@@ -59,9 +74,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/io": {
|
"node_modules/@actions/io": {
|
||||||
"version": "1.1.3",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/io/-/io-3.0.2.tgz",
|
||||||
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==",
|
"integrity": "sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@actions/tool-cache": {
|
"node_modules/@actions/tool-cache": {
|
||||||
@@ -77,6 +92,21 @@
|
|||||||
"semver": "^6.1.0"
|
"semver": "^6.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@actions/tool-cache/node_modules/@actions/exec": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@actions/io": "^1.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@actions/tool-cache/node_modules/@actions/io": {
|
||||||
|
"version": "1.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz",
|
||||||
|
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/@actions/tool-cache/node_modules/semver": {
|
"node_modules/@actions/tool-cache/node_modules/semver": {
|
||||||
"version": "6.3.1",
|
"version": "6.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-beam",
|
"name": "setup-beam",
|
||||||
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -17,7 +18,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.11.1",
|
"@actions/core": "1.11.1",
|
||||||
"@actions/exec": "1.1.1",
|
"@actions/exec": "3.0.0",
|
||||||
"@actions/tool-cache": "2.0.2",
|
"@actions/tool-cache": "2.0.2",
|
||||||
"csv-parse": "6.1.0",
|
"csv-parse": "6.1.0",
|
||||||
"lodash": "4.17.23",
|
"lodash": "4.17.23",
|
||||||
|
|||||||
+15
-14
@@ -1,12 +1,15 @@
|
|||||||
const core = require('@actions/core')
|
import path from 'node:path'
|
||||||
const { exec } = require('@actions/exec')
|
import fs from 'node:fs'
|
||||||
const tc = require('@actions/tool-cache')
|
import os from 'node:os'
|
||||||
const path = require('path')
|
import { fileURLToPath } from 'node:url'
|
||||||
const semver = require('semver')
|
import * as core from '@actions/core'
|
||||||
const fs = require('fs')
|
import { exec } from '@actions/exec'
|
||||||
const os = require('os')
|
import * as tc from '@actions/tool-cache'
|
||||||
const csv = require('csv-parse/sync')
|
import * as semver from 'semver'
|
||||||
const _ = require('lodash')
|
import * as csv from 'csv-parse/sync'
|
||||||
|
import _ from 'lodash'
|
||||||
|
|
||||||
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||||
|
|
||||||
const MAX_HTTP_RETRIES = 3
|
const MAX_HTTP_RETRIES = 3
|
||||||
|
|
||||||
@@ -108,11 +111,9 @@ async function maybeInstallElixir(elixirSpec) {
|
|||||||
function maybeEnableElixirProblemMatchers() {
|
function maybeEnableElixirProblemMatchers() {
|
||||||
const disableProblemMatchers = getInput('disable_problem_matchers', false)
|
const disableProblemMatchers = getInput('disable_problem_matchers', false)
|
||||||
if (disableProblemMatchers === 'false') {
|
if (disableProblemMatchers === 'false') {
|
||||||
|
// path.join helps ncc figure this out
|
||||||
const elixirMatchers = path.join(
|
const elixirMatchers = path.join(
|
||||||
__dirname,
|
`${__dirname}/../matchers/elixir-matchers.json`,
|
||||||
'..',
|
|
||||||
'matchers',
|
|
||||||
'elixir-matchers.json',
|
|
||||||
)
|
)
|
||||||
core.info(`##[add-matcher]${elixirMatchers}`)
|
core.info(`##[add-matcher]${elixirMatchers}`)
|
||||||
}
|
}
|
||||||
@@ -1237,7 +1238,7 @@ function debugLoggingEnabled() {
|
|||||||
return !!process.env.RUNNER_DEBUG
|
return !!process.env.RUNNER_DEBUG
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
export default {
|
||||||
get,
|
get,
|
||||||
getElixirVersion,
|
getElixirVersion,
|
||||||
getGleamVersion,
|
getGleamVersion,
|
||||||
|
|||||||
+10
-9
@@ -9,15 +9,16 @@ simulateInput('install-hex', 'true')
|
|||||||
simulateInput('github-token', process.env.GITHUB_TOKEN)
|
simulateInput('github-token', process.env.GITHUB_TOKEN)
|
||||||
simulateInput('hexpm-mirrors', 'https://builds.hex.pm', { multiline: true })
|
simulateInput('hexpm-mirrors', 'https://builds.hex.pm', { multiline: true })
|
||||||
|
|
||||||
const assert = require('assert')
|
import assert from 'node:assert'
|
||||||
const http = require('http')
|
import http from 'node:http'
|
||||||
const fs = require('fs')
|
import fs from 'node:fs'
|
||||||
const os = require('os')
|
import os from 'node:os'
|
||||||
const path = require('path')
|
import path from 'node:path'
|
||||||
const setupBeam = require('../src/setup-beam')
|
import { describe, it } from 'node:test'
|
||||||
const { problemMatcher } = require('../matchers/elixir-matchers.json')
|
import * as csv from 'csv-parse/sync'
|
||||||
const { describe, it } = require('node:test')
|
import setupBeam from '../src/setup-beam.js'
|
||||||
const csv = require('csv-parse/sync')
|
import elixirMatchers from '../matchers/elixir-matchers.json' with { type: 'json' }
|
||||||
|
const { problemMatcher } = elixirMatchers
|
||||||
|
|
||||||
const matrix = {
|
const matrix = {
|
||||||
otp: {
|
otp: {
|
||||||
|
|||||||
Reference in New Issue
Block a user