1481
1481โ€ข5mo ago

Strange error after lint in github actions

for a some reason after:
- name: Run linter
run: deno lint
- name: Run linter
run: deno lint
I get error that says Error: Process completed with exit code 1. my workflow github action file:
name: Deno tests

on: [push, pull_request]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Setup repo
uses: actions/checkout@v3

- name: Setup Deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
with:
deno-version: v1.x

# Uncomment this step to verify the use of 'deno fmt' on each commit.
# - name: Verify formatting
# run: deno fmt --check

- name: Run linter
run: deno lint

- name: Run tests
run: deno test -A
name: Deno tests

on: [push, pull_request]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Setup repo
uses: actions/checkout@v3

- name: Setup Deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
with:
deno-version: v1.x

# Uncomment this step to verify the use of 'deno fmt' on each commit.
# - name: Verify formatting
# run: deno fmt --check

- name: Run linter
run: deno lint

- name: Run tests
run: deno test -A
https://github.com/Rnbsov/Omnivore-Telegram-Bot/actions/runs/8129066025/job/22215706030
GitHub
๐Ÿงช Test for parseUrls and Github actions for running deno test ยท Rnb...
Telegram bot to help you with your findings ๐Ÿš€. Contribute to Rnbsov/Omnivore-Telegram-Bot development by creating an account on GitHub.
1 Reply
1481
1481โ€ข5mo ago
to fix it I tried to add 1 to this
name: Run linter
run: deno lint || 1
name: Run linter
run: deno lint || 1
but after this I started getting error
/home/runner/work/_temp/96e6eec7-6bd6-4a3c-91a1-db6b0cd9c993.sh: line 1: 1: command not found
Error: Process completed with exit code 127.
/home/runner/work/_temp/96e6eec7-6bd6-4a3c-91a1-db6b0cd9c993.sh: line 1: 1: command not found
Error: Process completed with exit code 127.
https://github.com/Rnbsov/Omnivore-Telegram-Bot/actions/runs/8153916055/job/22286236020
GitHub
๐Ÿƒ fix: Run tests even when linter fails ยท Rnbsov/Omnivore-Telegram-...
Telegram bot to help you with your findings ๐Ÿš€. Contribute to Rnbsov/Omnivore-Telegram-Bot development by creating an account on GitHub.