Skip to content

Commit

Permalink
Release 0.0.6 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
martclanor authored Feb 9, 2025
2 parents 2f88a2e + e9319e9 commit 0223a30
Show file tree
Hide file tree
Showing 41 changed files with 4,542 additions and 59 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Format repo with prettier (#10)
9470e78bfe1af06288c0a23f4a7b8e068152990d
14 changes: 0 additions & 14 deletions .github/workflows/codespell.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/lint-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow runs Ruff, Prettier, Codespell on the repository.

name: Lint-Format

on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop

jobs:
ruff-lint-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run ruff linter
uses: astral-sh/ruff-action@v3
with:
args: check --output-format=github
- name: Run ruff formatter
uses: astral-sh/ruff-action@v3
with:
args: format --diff

prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run prettier
uses: creyD/[email protected]
with:
prettier_options: --check .

codespell:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run codespell
uses: codespell-project/actions-codespell@v2
16 changes: 0 additions & 16 deletions .github/workflows/prettier.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow creates a release when release tag is pushed to main

name: Release

on:
push:
tags:
- "*.*.*"
branches:
- main

jobs:
create-release:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install project dependencies
run: npm ci

- name: Package Extension
run: npm run package

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ github.ref_name }} *.vsix \
--title ${{ github.ref_name }}-alpha \
--prerelease \
--generate-notes
20 changes: 0 additions & 20 deletions .github/workflows/ruff.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/tmgrammar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow runs vscode-tmgrammar-snap on the samples.

name: TextMate Grammar

on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop

jobs:
grammar-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: npm ci

- name: Run grammar tests
run: npm run test:grammar
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ repos:
rev: v2.4.1
hooks:
- id: codespell
- repo: local
hooks:
- id: run-grammar-tests
name: Run grammar tests
entry: npm run test:grammar
language: node
pass_filenames: false
verbose: true
5 changes: 5 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ templates/**
.mypy_cache/**
.ruff_cache/**
data/**
syntaxes/samples/**
.codespellrc
.pre-commit-config.yaml
.prettierignore
.git-blame-ignore-revs
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# VS Code MODFLOW 6 Syntax

[![TextMate Grammar](https://github.com/martclanor/vscode-mf6-syntax/actions/workflows/tmgrammar.yaml/badge.svg)](https://github.com/martclanor/vscode-mf6-syntax/actions/workflows/tmgrammar.yaml)
![GitHub package.json version](https://img.shields.io/github/package-json/v/martclanor/vscode-mf6-syntax)
![GitHub License](https://img.shields.io/github/license/martclanor/vscode-mf6-syntax)

![Icon](images/icon_banner.png)

This extension provides syntax highlighting support for MODFLOW 6 input files in VS Code. This is based on TextMate grammar that is derived from MF6 definition files. The primary goal of this project is to make MF6 input files a bit easier on the eyes.
Expand All @@ -19,6 +23,13 @@ This extension provides syntax highlighting support for MODFLOW 6 input files in

## Release Notes

### 0.0.6

- Add gh release workflow
- Add grammar testing
- Rework workflows
- Add badges

### 0.0.5

- Lint and format with ruff, codespell and prettier
Expand Down
Loading

0 comments on commit 0223a30

Please sign in to comment.