Skip to content

Add automated linting fixer workflow #18

Add automated linting fixer workflow

Add automated linting fixer workflow #18

Workflow file for this run

name: test
on:
push:
branches: [main]
paths-ignore:
- "!**/*.md"
pull_request:
branches: [main]
paths-ignore:
- "!**/*.md"
merge_group:
types: [checks_requested]
branches: [main]
# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Install NodeJS
uses: actions/setup-node@v3
- name: Install Prettier
run: npm install -g prettier
- name: Run Prettier --check
run: prettier --check .
nf-test:
runs-on: ubuntu-20.04
env:
NXF_ANSI_LOG: false
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: /usr/local/bin/nextflow
key: ${{ runner.os }}
restore-keys: |
${{ runner.os }}-nextflow-
- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Cache nf-test installation
id: cache-software
uses: actions/cache@v3
with:
path: |
/usr/local/bin/nf-test
/home/runner/.nf-test/nf-test.jar
key: ${{ runner.os }}-nftest
- name: Install nf-test
if: steps.cache-software.outputs.cache-hit != 'true'
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
sudo mv nf-test /usr/local/bin/
# Test the module
- name: Run nf-test
run: |
nf-test test \
--tap=test.tap
- uses: pcolby/tap-summary@v1
with:
path: >-
test.tap