Skip to content

conao3/setup-keg

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

https://raw.githubusercontent.com/conao3/files/master/blob/headers/png/setup-keg.png https://img.shields.io/github/license/conao3/setup-keg.svg?style=flat-square https://img.shields.io/github/tag/conao3/setup-keg.svg?style=flat-square https://img.shields.io/github/workflow/status/conao3/setup-keg/Main%20workflow.svg?label=GitHub%20Actions&logo=github&style=flat-square https://img.shields.io/codacy/grade/1108333059ce4bc7a833a42a4eaf417c.svg?logo=codacy&style=flat-square https://img.shields.io/badge/patreon-become%20a%20patron-orange.svg?logo=patreon&style=flat-square https://img.shields.io/badge/twitter-@conao__3-blue.svg?logo=twitter&style=flat-square https://img.shields.io/badge/chat-on_slack-blue.svg?logo=slack&style=flat-square

Table of Contents

Description

setup-keg prepare Keg for your workflow.

  • Fetch specified Keg in your workflow $HOME (such as /home/runner/.keg).
  • Add /home/runner/.keg/bin to your workflow $PATH
  • Initiarize Keg

Usage

Keg depends Emacs. You should setup, before use setup-keg.

This mechanism has a merit to be able to use specified version of Emacs.

setup-keg’s version accepts snapshot and version code. (see Keg release page)

And refference these action.yml

Basic

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: purcell/setup-emacs@master
        with:
          version: '26.3'

      - uses: conao3/setup-keg@master
        with:
          version: 'snapshot'

      - name: Run tests
        run: make test

This example is testing your package in below environment.

  • Emacs: 26.3
  • Keg: snapshot (HEAD)

Matrix testing

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        emacs_version:
          - '26.1'
          - '26.2'
          - '26.3'
          - 'snapshot'
        keg_version:
          - 'snapshot'
    steps:
      - uses: actions/checkout@v1
      - uses: purcell/setup-emacs@master
        with:
          version: ${{ matrix.emacs_version }}

      - uses: conao3/setup-keg@master
        with:
          version: 'snapshot'

      - name: Run tests
        run: make test

This example is testing your package in below environment.

  • Emacs: 26.1, 26.2, 26.3
  • Keg: snapshot (HEAD)

Simplest

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: purcell/setup-emacs@master
        with:
          version: '26.3'
      - uses: conao3/setup-keg@master

      - name: Run tests
        run: make test

This example is testing your package in below environment.

  • Emacs: 26.3
  • Keg: snapshot (HEAD)

Information

Donation

I love OSS and I am dreaming of working on it as full-time job.

With your support, I will be able to spend more time at OSS!

https://c5.patreon.com/external/logo/become_a_patron_button.png

Community

All feedback and suggestions are welcome!

You can use github issues, but you can also use Slack if you want a more casual conversation.

Contribution

Feel free to send PR!

License

MIT
Copyright (c) Naoya Yamashita - https://conao3.com
https://github.com/conao3/setup-keg/blob/master/LICENSE

Author

Contributors

  • Not yet… Now send PR and add your name!!