Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0430 committed Jan 12, 2025
1 parent 5e30fef commit 0253e5c
Showing 1 changed file with 9 additions and 25 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@

name: Unit tests

on:
pull_request:
paths:
- '.github/workflows/test.yaml'
- 'example/**'
- 'moe.nimble'
- 'src/**'
- 'tests/**'
on: push

permissions:
contents: read
Expand Down Expand Up @@ -58,30 +51,21 @@ jobs:
- uses: actions/checkout@v4
- run: |
sudo apt-get update -yqq
sudo apt-get install -y gcc libncursesw5-dev build-essential xvfb x11-xserver-utils xsel xclip libpcre3
sudo apt-get install -y libncursesw5-dev xvfb x11-xserver-utils xsel xclip libpcre3
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v4
- uses: jiro4989/setup-nimble-action@v1
with:
path: ~/.nimble
key: unit-tests-nimble-v2-${{ github.sha }}
restore-keys: |
unit-tests-nimble-v2-
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: 2.0.14
nimble-version: 'latest'
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install nimlangserver
- name: Install nimlangserver and nph
run: |
nimble refresh
nimble install nimlangserver nph
nimble install nimlangserver
nimlangserver --version
nimble install nph
nph -v
- name: Run unit test
run: |
nimble install stew # Workaround
xvfb-run env XDG_SESSION_TYPE=x11 nimble test --verbose -y

0 comments on commit 0253e5c

Please sign in to comment.