Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds initial CI pipeline support #13

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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