|
| 1 | +name: Eask CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - Eask |
| 7 | + - rustowl.el |
| 8 | + - emacs-tests/ |
| 9 | + - .github/workflows/emacs-checks.yml |
| 10 | + branches: |
| 11 | + - main |
| 12 | + pull_request: |
| 13 | + paths: |
| 14 | + - Eask |
| 15 | + - rustowl.el |
| 16 | + - emacs-tests/ |
| 17 | + - .github/workflows/emacs-checks.yml |
| 18 | + |
| 19 | +jobs: |
| 20 | + lint: |
| 21 | + name: Lint |
| 22 | + runs-on: ubuntu-latest |
| 23 | + steps: |
| 24 | + - name: Checkout repository |
| 25 | + uses: actions/checkout@v4 |
| 26 | + |
| 27 | + - name: Set up Emacs |
| 28 | + uses: jcs090218/setup-emacs@master |
| 29 | + with: |
| 30 | + version: 28.1 |
| 31 | + |
| 32 | + - name: Set up Eask (snapshot) |
| 33 | + uses: emacs-eask/setup-eask@master |
| 34 | + with: |
| 35 | + version: 'snapshot' |
| 36 | + |
| 37 | + - name: Setup Rustowl |
| 38 | + run: | |
| 39 | + ./scripts/build/toolchain cargo build --release |
| 40 | + ./scripts/build/toolchain cargo install --path . --locked |
| 41 | +
|
| 42 | + - name: Lint Regexps |
| 43 | + run: eask lint regexps |
| 44 | + |
| 45 | + - name: Lint Package |
| 46 | + run: eask lint package |
| 47 | + |
| 48 | + - name: Lint License |
| 49 | + run: eask lint license |
| 50 | + |
| 51 | + - name: Lint Keywords |
| 52 | + run: eask lint keywords |
| 53 | + |
| 54 | + - name: Lint Indent |
| 55 | + run: eask lint indent |
| 56 | + |
| 57 | + - name: Lint Checkdocs |
| 58 | + run: eask lint checkdocs |
| 59 | + |
| 60 | + - name: Lint Declare |
| 61 | + run: eask lint declare |
| 62 | + |
| 63 | + - name: Lint elisp-lint |
| 64 | + run: eask lint elisp-lint |
| 65 | + |
| 66 | + test: |
| 67 | + name: Test |
| 68 | + runs-on: ubuntu-latest |
| 69 | + steps: |
| 70 | + - name: Checkout repository |
| 71 | + uses: actions/checkout@v4 |
| 72 | + |
| 73 | + - name: Set up Emacs |
| 74 | + uses: jcs090218/setup-emacs@master |
| 75 | + with: |
| 76 | + version: 28.1 |
| 77 | + |
| 78 | + - name: Set up Eask (snapshot) |
| 79 | + uses: emacs-eask/setup-eask@master |
| 80 | + with: |
| 81 | + version: 'snapshot' |
| 82 | + |
| 83 | + - name: Setup Rustowl |
| 84 | + run: | |
| 85 | + ./scripts/build/toolchain cargo build --release |
| 86 | + ./scripts/build/toolchain cargo install --path . --locked |
| 87 | +
|
| 88 | + - name: Run Tests |
| 89 | + run: eask run script test |
| 90 | + |
| 91 | + build: |
| 92 | + name: Build |
| 93 | + runs-on: ubuntu-latest |
| 94 | + steps: |
| 95 | + - name: Checkout |
| 96 | + uses: actions/checkout@v4 |
| 97 | + |
| 98 | + - name: Setup Emacs |
| 99 | + uses: jcs090218/setup-emacs@master |
| 100 | + with: |
| 101 | + version: 28.1 |
| 102 | + |
| 103 | + - name: Setup Rustowl |
| 104 | + run: | |
| 105 | + ./scripts/build/toolchain cargo build --release |
| 106 | + ./scripts/build/toolchain cargo install --path . --locked |
| 107 | +
|
| 108 | + - name: Setup Eask |
| 109 | + uses: emacs-eask/setup-eask@master |
| 110 | + with: |
| 111 | + version: 'snapshot' |
| 112 | + |
| 113 | + - name: Build And Compile |
| 114 | + run: | |
| 115 | + eask package |
| 116 | + eask install |
| 117 | + eask compile |
0 commit comments