Skip to content

Commit

Permalink
Merge pull request #13 from lfortran/dylon/ci
Browse files Browse the repository at this point in the history
Adds initial CI pipeline support
  • Loading branch information
dylon authored Nov 21, 2024
2 parents 94550f6 + fd8abfe commit 8989d9a
Show file tree
Hide file tree
Showing 28 changed files with 3,886 additions and 5,666 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint-sources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint Sources

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main

jobs:
build:
strategy:
matrix:
# node-version: ['23.x', 'latest']
node-version: ['23.x']

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
32 changes: 32 additions & 0 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test MacOS

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main

jobs:
build:
strategy:
matrix:
# node-version: ['23.x', 'latest']
node-version: ['23.x']
# vscode-version: ['1.95.3', 'latest']

runs-on: macos-latest

steps:
# - name: Install VSCode
# run: brew install --cask visual-studio-code
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
32 changes: 32 additions & 0 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test Ubuntu

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main

jobs:
build:
strategy:
matrix:
# node-version: ['23.x', 'latest']
node-version: ['23.x']
# vscode-version: ['1.95.3', 'latest']

runs-on: ubuntu-latest

steps:
# - name: Install VSCode
# run: sudo snap install code --classic
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
34 changes: 34 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Windows

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main

jobs:
build:
strategy:
matrix:
# node-version: ['23.x', 'latest']
node-version: ['23.x']
# vscode-version: ['1.95.3', 'latest']

runs-on: windows-latest

steps:
# - name: Install VSCode
# run: choco install vscode
# - name: Append vscode to path
# run: Add-Content $env:GITHUB_PATH "C:\Program Files\Microsoft VS Code"
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@
!/client/testFixture/*.txt
!/client/test/spec/**/*.ts
!/client/tsconfig.json
!/eslint.config.mjs
!/.github/workflows/*.yaml
!/.github/workflows/*.yml
!/.gitignore
!/.mocharc.json
!/package.json
!/README.md
!/scripts/*.sh
!/server/package.json
!/server/src/*.ts
!/server/test/bin/lfortran
!/server/test/bin/*.ps1
!/server/test/bin/*.sh
!/server/test/spec/**/*.ts
!/server/tsconfig.json
!/tsconfig.json
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# lfortran-lsp

LFortran implementation of LSP for VSCode.
[![Test Ubuntu](https://github.com/lfortran/lfortran-lsp/actions/workflows/test-ubuntu.yml/badge.svg)](https://github.com/lfortran/lfortran-lsp/actions/workflows/test-ubuntu.yml) [![Test MacOS](https://github.com/lfortran/lfortran-lsp/actions/workflows/test-macos.yml/badge.svg)](https://github.com/lfortran/lfortran-lsp/actions/workflows/test-macos.yml) [![Test Windows](https://github.com/lfortran/lfortran-lsp/actions/workflows/test-windows.yml/badge.svg)](https://github.com/lfortran/lfortran-lsp/actions/workflows/test-windows.yml) [![Lint Sources](https://github.com/lfortran/lfortran-lsp/actions/workflows/lint-sources.yml/badge.svg)](https://github.com/lfortran/lfortran-lsp/actions/workflows/lint-sources.yml)

LFortran implementation of Microsoft's Language Server Protocol (LSP) for VSCode.

## Key Features

Expand Down Expand Up @@ -48,8 +50,7 @@ Development, and test the extension. :)
To package the extension, you can do:

```bash
npm install --save-dev vsce
vsce package
npx vsce package
```

This will generate a `.vsix` file in your `lfortran-lsp` folder, which can then be
Expand Down
Loading

0 comments on commit 8989d9a

Please sign in to comment.