Skip to content

ci: uses setup-fortran action #2853

ci: uses setup-fortran action

ci: uses setup-fortran action #2853

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest]
toolchain:
- { compiler: gcc, version: 11 }
node-version: [20.x]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
- name: Installing Extension
run: npm ci
- name: Compile
run: npm run compile
- name: Linting
run: npm run lint
- name: Test Syntax Highlighting
run: npm run test:grammar
- name: Test Unittests
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test
# This will not fail the job if tests fail so we have to npm test separately
- name: Coverage report
uses: GabrielBB/xvfb-action@v1
with:
run: npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true