diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cbacee7..8069655 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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