Bump eslint from 9.3.0 to 9.4.0 #174
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "units-test" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
# unit tests | |
units: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: npm ci | |
- run: npm test | |
# test action works running from the graph | |
test: | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- swift-version: wasm-5.7.1-RELEASE | |
os: ubuntu-20.04 | |
- swift-version: wasm-5.6.0-RELEASE | |
os: macos-11 | |
- swift-version: wasm-5.8.0-RELEASE | |
os: ubuntu-latest | |
container: swift:amazonlinux2 | |
runs-on: ${{ matrix.os }} | |
container: ${{ matrix.container }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
with: | |
swift-version: ${{ matrix.swift-version }} | |
- run: swift --version | |
test-default: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
- run: swift --version | |
test-skip-add-to-path: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
id: setup | |
with: | |
add-to-path: false | |
- name: Ensure that the toolchain is not added to the PATH | |
shell: node {0} | |
run: | | |
const path = require('path'); | |
const toolchainPath = path.join(process.env.TOOLCHAIN_PATH, 'usr', 'bin'); | |
const pathEnv = process.env.PATH; | |
console.log(`Checking if ${toolchainPath} is in the PATH (${pathEnv})`); | |
const pathCandidates = pathEnv.split(path.delimiter); | |
if (pathCandidates.includes(toolchainPath)) { | |
throw new Error(`Toolchain path ${toolchainPath} is in the PATH`); | |
} | |
env: | |
TOOLCHAIN_PATH: ${{ steps.setup.outputs.toolchain-path }} | |
test-nightly: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./nightly | |
- run: swift --version |