chore(deps): update dependency eslint-plugin-import to v2.28.1 #854
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: Test and Release | |
on: | |
push: | |
env: | |
# For chalk: https://github.com/chalk/chalk#supportscolor | |
FORCE_COLOR: 3 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
jobs: | |
parse: | |
name: "Run parse examples" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Keep npm cache around to speed up installs | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
run: npm ci --no-audit --ignore-scripts | |
- name: Parse examples | |
run: | | |
npx tsx parse.ts parser/test-data/feature/Example.feature.md | |
npx tsx parse.ts parser/test-data/feature/Highlander.feature.md | |
npx tsx parse.ts examples/mars-rover/MarsRover.feature.md | |
mars-rover: | |
name: "Run Mars Rover example" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Keep npm cache around to speed up installs | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
run: npm ci --no-audit --ignore-scripts | |
- name: Mars Rover Example | |
run: | | |
npx tsx examples/mars-rover/tests.ts > mars-rover.json | |
cat mars-rover.json | npx tsx reporter/console-cli.ts | |
cat mars-rover.json | npx tsx reporter/markdown-cli.ts >> $GITHUB_STEP_SUMMARY | |
firmware: | |
name: "Run Firmware example" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Keep npm cache around to speed up installs | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
run: npm ci --no-audit --ignore-scripts | |
- name: Firmware Example | |
run: | | |
npx tsx examples/firmware/tests.ts > firmware.json | |
cat firmware.json | npx tsx reporter/console-cli.ts | |
cat firmware.json | npx tsx reporter/markdown-cli.ts >> $GITHUB_STEP_SUMMARY | |
tests: | |
name: "Test and Release" | |
needs: [parse, mars-rover, firmware] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Keep npm cache around to speed up installs | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
run: npm ci --no-audit | |
- name: Run Unit Tests | |
run: npm test | |
- name: Parse examples | |
run: | | |
npx tsx parse.ts parser/test-data/feature/Example.feature.md | |
npx tsx parse.ts parser/test-data/feature/Highlander.feature.md | |
npx tsx parse.ts examples/mars-rover/MarsRover.feature.md | |
- name: Run examples | |
run: | | |
npx tsx examples/mars-rover/tests.ts | |
npx tsx examples/firmware/tests.ts | |
- name: Semantic release | |
continue-on-error: true | |
run: npx semantic-release |