Skip to content

Commit

Permalink
forgot to modify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hubisan committed Aug 19, 2024
1 parent 9412cd6 commit e669274
Showing 1 changed file with 27 additions and 55 deletions.
82 changes: 27 additions & 55 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,76 +5,48 @@ on:
paths-ignore:
- '**.md'
- '**.org'
# branches:
# - main
pull_request:
paths-ignore:
- '**.md'
- '**.org'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
emacs_version:
# Add more lines like this if you want to test on different Emacs versions.
- 28.1
- 28.2
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
emacs-version:
- 29.4
- snapshot
experimental: [false]
# include:
# - os: ubuntu-latest
# emacs-version: snapshot
# experimental: true

steps:
- name: Set up Emacs
uses: purcell/setup-emacs@master
with:
version: ${{matrix.emacs_version}}

- name: Install Eldev
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh

- name: Check out the source code
uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Clean
run: eldev clean all

- name: Test
if: ${{ matrix.emacs_version != 'snapshot' }}
run: make test verbose=--trace

- name: Test Snapshot
# For some reason snapshot was not working with eldev if using packaged.
if: ${{ matrix.emacs_version == 'snapshot' }}
run: make test-as-is verbose=--trace

lint_and_compile:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- 28.2

steps:
- name: Set up Emacs
uses: purcell/setup-emacs@master
- uses: jcs090218/setup-emacs@master
with:
version: ${{matrix.emacs_version}}
version: ${{ matrix.emacs-version }}

- name: Install Eldev
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh

- name: Check out the source code
uses: actions/checkout@v3

- name: Clean
run: eldev clean all

- name: Lint
run: make lint verbose=--trace
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'

- name: Compile
run: make compile verbose=--trace
- name: Run tests
run: |
make all
make clean

0 comments on commit e669274

Please sign in to comment.