Skip to content

Commit

Permalink
Merge branch 'master' into style
Browse files Browse the repository at this point in the history
  • Loading branch information
banacorn authored Nov 7, 2024
2 parents 3677e3b + 02b36b6 commit 51d150a
Show file tree
Hide file tree
Showing 152 changed files with 14,985 additions and 18,592 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
run: npm run vscode:prepublish

- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v0
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX }}

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_PAT }}
registryUrl: https://marketplace.visualstudio.com
76 changes: 0 additions & 76 deletions .github/workflows/test-macos.yml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/test-windows.yml

This file was deleted.

119 changes: 119 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# This is a basic workflow to help you get started with Actions

name: Test

defaults:
run:
shell: bash

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, dev, ci ]
pull_request:
branches: [ master, dev, ci ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-and-test:
# Runs on all major platforms
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
agda: ["Agda-2.6.4", "Agda-2.7.0"]
fail-fast: false

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4

# actions:

- name: ⏬ Setup Haskell environment
id: haskell-setup
uses: haskell-actions/setup@v2
with:
ghc-version: '9.2.8'
stack-version: latest
cabal-update: false
enable-stack: true

- name: 🛠️ Setting variables
run: |
echo "STACK_LOCAL_BIN=$(stack path --local-bin)" >> "$GITHUB_ENV"
- name: 🔍 Reviewing variables
run: |
echo "runner.os = ${{ runner.os }}"
echo "ghc-path = ${{ steps.haskell-setup.outputs.ghc-path }}"
echo "ghc-exe = ${{ steps.haskell-setup.outputs.ghc-exe }}"
echo "stack-path = ${{ steps.haskell-setup.outputs.stack-path }}"
echo "stack-exe = ${{ steps.haskell-setup.outputs.stack-exe }}"
echo "stack-root = ${{ steps.haskell-setup.outputs.stack-root }}"
echo "STACK_LOCAL_BIN = $STACK_LOCAL_BIN"
# cached stuff to be restored:
- name: 💾 Restore cached stack global package db
id: stack-global
uses: actions/cache/restore@v4
with:
path: ${{ steps.haskell-setup.outputs.stack-root }}
key: ${{ runner.os }}-stack-global-${{ matrix.agda }}
restore-keys: |
${{ runner.os }}-stack-global
- name: 💾 Restore stack-installed binaries in ~/.local/bin
id: stack-binaries
uses: actions/cache/restore@v4
with:
path: ${{ env.STACK_LOCAL_BIN }}
key: ${{ runner.os }}-stack-binaries-${{ matrix.agda }}
restore-keys: |
${{ runner.os }}-stack-binaries
- name: ⏬ Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: 🛠️ Add Stack install directory to PATH
run: echo $STACK_LOCAL_BIN >> $GITHUB_PATH

- name: ⏬ Install Agda
run: |
stack install --resolver=lts-20.26 ${{ matrix.agda }}
which agda
agda --version
# things to be cached

- name: 💾 Cache stack global package db
if: always() && steps.stack-global.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ${{ steps.haskell-setup.outputs.stack-root }}
key: ${{ steps.stack-global.outputs.cache-primary-key }}

- name: 💾 Cache stack-installed binaries
if: always() && steps.stack-binaries.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ${{ env.STACK_LOCAL_BIN }}
key: ${{ steps.stack-binaries.outputs.cache-primary-key }}

- name: ⏬ Install NPM Dependencies
run: npm install

- name: 🔨 Build stuff
run: npm run build

- name: 🚗 Run tests (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a npm test

- name: 🚗 Run tests (Windows, MacOS)
if: runner.os != 'Linux'
run: npm test
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,80 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## v0.5.0 - BTA

### Fixed
- #195: Remove all usage of deprecated api @bs.send.pipe by [@jiangsy](https://github.com/jiangsy)
- #191: Add more detailed splitting command description by [@ChAoSUnItY](https://github.com/ChAoSUnItY)

### Changed
- Upgrade ReScript to v11
- CI overhaul: allow testings be be conducted on all major platforms (Windows, macOS, Ubuntu) and on multiple versions of Agda

## v0.4.7 - 2023-12-16

### Changed
- Fetch the latest release of Agda Language Server from GitHub

### Fixed
- #172: "Connection Error: Unable to find Agda Language Server" Error downloading language server?
- #176: Many Unicode input sequences no longer work by [@szumixie](https://github.com/szumixie)
- #177: Update `asset/keymap.js` by [@szumixie](https://github.com/szumixie)

## v0.4.6 - 2023-12-09

### Fixed
- Remove `rescript-nodejs` from dependencies to fix the polyfill issue

## v0.4.5 - 2023-12-09

### Changed
- #126: Update language-server-mule to 0.2.4 (Fixes LSP) by [@jul1u5](https://github.com/jul1u5)
- Replaced [@glennsl/bs-json](https://github.com/glennsl/bs-json) with [@glennsl/rescript-json-combinators](rescript-json-combinators)

### Fixed
- #173: `C-c C-r` results in wrong character when applied to character outside of BMP
- #175: Refining a goal having `\` (instead of `λ`) results in an Internal Parse Error
- #125: Modal bindings are not shown in the goal context
- #171: Update `asset/keymap.js` to the latest
- #159: Holes spanning multiple lines are not handled
- Restore highlighting after tokens have been moved around

## v0.4.3 - 2023-12-03

### Changed
- Some adjustments to the UI
- Update ReScript to v10.1.4
- Update language-server-mule to v0.3.0

### Fixed
- Remove unnecessary escape characters from regular expressions & string literal
- Better parsing of display info from Agda EmacsTop

## v0.4.2 - 2023-11-20

### Changed

- #167: Make the font size of Agda buffer the same as editors
- #166: Improve debug buffer: Not printing modules checked and verbosity now

## v0.4.1 - 2023-09-04

### Changed

- #161: Compact UI by [@fredrik-bakke](https://github.com/fredrik-bakke)

### Added

- #163: Define auto indentation rules by [@fredrik-bakke](https://github.com/fredrik-bakke)
- #151: Update language configuration by [@fredrik-bakke](https://github.com/fredrik-bakke)

### Fixed

- #155: Re #79: Disable activating input method inside the search box by [@vic0103520](https://github.com/vic0103520)
- #154: Fix issue #76: Input method is reactivated after entering a backslash… by [@vic0103520](https://github.com/vic0103520)
- #153: Fix issue #117: Allow numeric input to complete ambiguous key bindings by [@vic0103520](https://github.com/vic0103520)

## v0.4.0 - 2023-08-02

The version number v0.4.0 was bumped by accident.
Expand Down
Loading

0 comments on commit 51d150a

Please sign in to comment.