Skip to content

Commit

Permalink
Update CI and test
Browse files Browse the repository at this point in the history
  • Loading branch information
nwhetsell committed Aug 21, 2024
1 parent d6cdb9a commit 03eb69c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: CI

on: [push, pull_request]

env:
CI: true

jobs:
Test:
strategy:
Expand All @@ -15,21 +12,21 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Install Pulsar on macOS
run: brew install pulsar
if: ${{ matrix.os == 'macos-latest' }}
- name: Install Pulsar on Linux
uses: pulsar-edit/action-pulsar-dependency@v3
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install Pulsar on macOS
run: brew install pulsar
if: ${{ matrix.os == 'macos-latest' }}

- name: Install LilyPond on Linux
run: |
wget --no-verbose https://gitlab.com/lilypond/lilypond/-/releases/v2.24.3/downloads/lilypond-2.24.3-linux-x86_64.tar.gz
tar -xf lilypond-2.24.3-linux-x86_64.tar.gz
echo "$(pwd)/lilypond-2.24.3/bin" >> $GITHUB_PATH
wget --no-verbose https://gitlab.com/lilypond/lilypond/-/releases/v2.24.4/downloads/lilypond-2.24.4-linux-x86_64.tar.gz
tar -xf lilypond-2.24.4-linux-x86_64.tar.gz
echo "$(pwd)/lilypond-2.24.4/bin" >> $GITHUB_PATH
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install LilyPond on macOS
run: brew update && brew install lilypond
run: brew install lilypond
if: ${{ matrix.os == 'macos-latest' }}

- name: Install package dependencies
Expand Down
9 changes: 6 additions & 3 deletions spec/linter-lilypond-spec.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
const dedent = require("dedent-js");
const fs = require("fs");
const path = require("path");
const process = require("process");

const lint = require("../lib/linter-lilypond").provideLinter().lint;

describe("linter-lilypond", () => {
const preamble = '\\version "2.22.0"\n';
const preamble = '\\version "2.24.4"\n';

beforeEach(() => {
waitsForPromise(() => atom.packages.activatePackage("linter-lilypond"));
});

// These tests pass locally, but not on GitHub Actions.
/*
if (process.env.CI !== "true") {

describe("LilyPond linter", () => {
it("lints a valid file", () => {
const filePath = path.join(__dirname, "test.ly");
Expand Down Expand Up @@ -125,7 +127,8 @@ describe("linter-lilypond", () => {
}));
});
});
*/

}

describe("LilyPond grammar", () => {
let grammar;
Expand Down

0 comments on commit 03eb69c

Please sign in to comment.