a9fe038347
* fix: typo * fix: remove debug for git references it generates a massive amount of logs * feat: read values from env allows to test act on GHA when it's not a main repo * fix: merge extrapath with PATH * fix(tests): add additional shells for testing * fix(image): update images pin node to major version only, current node version: 12.22.1 replace most images with `node:12-buster-slim` to prevent errors on macOS runner due to DockerHub pull limit replace ocaml image Co-authored-by: Casey Lee <cplee@nektos.com>
26 lines
547 B
Go
26 lines
547 B
Go
package cmd
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func (i *Input) newPlatforms() map[string]string {
|
|
platforms := map[string]string{
|
|
"ubuntu-latest": "node:12-buster-slim",
|
|
"ubuntu-20.04": "node:12-buster-slim",
|
|
"ubuntu-18.04": "node:12-buster-slim",
|
|
"ubuntu-16.04": "node:12-stretch-slim",
|
|
"windows-latest": "",
|
|
"windows-2019": "",
|
|
"macos-latest": "",
|
|
"macos-10.15": "",
|
|
}
|
|
|
|
for _, p := range i.platforms {
|
|
pParts := strings.Split(p, "=")
|
|
if len(pParts) == 2 {
|
|
platforms[pParts[0]] = pParts[1]
|
|
}
|
|
}
|
|
return platforms
|
|
}
|