Skip to content

Commit

Permalink
ci(tests): only run tests on ubuntu-latest
Browse files Browse the repository at this point in the history
It works for neverwinter.nim. *shrug*
  • Loading branch information
squattingmonk committed Oct 17, 2023
1 parent 065bb11 commit 861f8e7
Showing 1 changed file with 20 additions and 27 deletions.
47 changes: 20 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
name: test
name: Tests

on:
# Allow running manually
workflow_dispatch:

# Run automatically
push:
branches:
- master
paths-ignore:
- '.github/**'
- 'LICENSE'
- '*.md'
- '.github/**'
- '*.yml'
pull_request:
branches:
- master
types:
- opened
- reopened
- synchronize
paths-ignore:
- '.github/**'
- 'LICENSE'
Expand All @@ -33,35 +25,36 @@ jobs:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
nim:
- 1.6.14
# - windows-latest
# - macOS-latest
nim-version:
- stable
name: Nim ${{ matrix.nim }} (${{ matrix.os }})
- 1.6.14
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ matrix.nim }}
key: ${{ runner.os }}-choosenim-${{ matrix.nim-version }}

- name: Cache nimble
id: cache-nimble
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
key: ${{ runner.os }}-nimble-${{ matrix.nim-version }}-${{ hashFiles('nasher.nimble') }}

- name: Set up Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim }}
- name: Print Nim version
run: nim -v
- name: Print Nimble version
run: nimble -v
nim-version: ${{ matrix.nim-version }}

- name: Install dependencies
run: nimble install -y --depsOnly

- name: Run Nimble tests
run: nimble test -y
- name: Build with Nimble
run: nimble build -y

0 comments on commit 861f8e7

Please sign in to comment.