Skip to content

ci: test run node version 20 testing deprecated actioon of scripts #56

ci: test run node version 20 testing deprecated actioon of scripts

ci: test run node version 20 testing deprecated actioon of scripts #56

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
- '*/*'
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
runs:

Check failure on line 16 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 16, Col: 5): Unexpected value 'runs'
using: 'node20'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: 16.20.2
- name: Install dependencies
run: npm install --force
- name: Build of code
run: npm run build
- name: Run unit tests
id: unit-tests
run: |
if npm run test:ci; then
echo "Tests passed"
echo "::set-output name=status::success"
else
echo "Tests failed"
echo "::set-output name=status::failure"
fi
- name: Check test status
run: exit 1
if: ${{ steps.unit-tests.outputs.status == 'failure' }}