-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dickmao
committed
Oct 14, 2024
0 parents
commit c8aaf40
Showing
33 changed files
with
3,674 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- '**.rst' | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- '**.rst' | ||
branches-ignore: | ||
- 'master' | ||
- 'main' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
emacs_version: [27.2, 28.2, 29.2] | ||
ruby_version: [2.6] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby_version }} | ||
|
||
- uses: purcell/setup-emacs@master | ||
with: | ||
version: ${{ matrix.emacs_version }} | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-cask-packages | ||
with: | ||
path: .cask | ||
key: cache-cask-packages-000 | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-cask-executable | ||
with: | ||
path: ~/.cask | ||
key: cache-cask-executable-000 | ||
|
||
- uses: conao3/setup-cask@master | ||
if: steps.cache-cask-executable.outputs.cache-hit != 'true' | ||
with: | ||
version: snapshot | ||
|
||
- name: paths | ||
run: | | ||
echo "$HOME/local/bin" >> $GITHUB_PATH | ||
echo "$HOME/.cask/bin" >> $GITHUB_PATH | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
echo "LD_LIBRARY_PATH=$HOME/.local/lib" >> $GITHUB_ENV | ||
- uses: actions/cache@v2 | ||
if: startsWith(runner.os, 'Linux') | ||
with: | ||
path: ~/.cache/rubocop_cache | ||
key: ${{ runner.os }}-rubocop | ||
|
||
- uses: actions/cache@v2 | ||
if: startsWith(runner.os, 'macOS') | ||
with: | ||
path: ~/Library/Caches/rubocop_cache | ||
key: ${{ runner.os }}-rubocop | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/local | ||
key: ${{ runner.os }}-local-000 | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.emacs.d | ||
key: emacs.d | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cask | ||
key: cask-000 | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: nndiscourse/vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: bundler | ||
run: | | ||
gem install --user-install bundler:2.0.2 | ||
- name: apt-get | ||
if: startsWith(runner.os, 'Linux') | ||
run: | | ||
sudo apt-get -yq update | ||
DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install gnutls-bin sharutils gnupg2 dirmngr libreadline-dev libcurl4-openssl-dev | ||
- name: gnupg | ||
if: startsWith(runner.os, 'macOS') | ||
run: brew list gnupg &>/dev/null || HOMEBREW_NO_AUTO_UPDATE=1 brew install gnupg | ||
|
||
- name: versions | ||
run: | | ||
ruby --version | ||
rake --version | ||
bundle --version | ||
curl --version | ||
emacs --version | ||
gpg --version | ||
- name: test | ||
run: | | ||
make test-run | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
*.elc | ||
.cask | ||
nndiscourse-autoloads.el | ||
.rspec | ||
bin/ | ||
vendor/ | ||
nndiscourse*.gem | ||
dist/ | ||
.bundle | ||
tests/Mail | ||
tests/News | ||
tests/.newsrc | ||
.ecukes* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(source gnu) | ||
(source melpa) | ||
|
||
(package-file "nndiscourse.el") | ||
(files "nndiscourse.el" ("nndiscourse" "nndiscourse/.ruby-version" "nndiscourse/Gemfile" "nndiscourse/Gemfile.lock" "nndiscourse/nndiscourse.gemspec" "nndiscourse/nndiscourse.thor" "nndiscourse/lib")) | ||
|
||
(development | ||
(depends-on "ert-runner") | ||
(depends-on "package-lint") | ||
(depends-on "json-rpc") | ||
(depends-on "rbenv") | ||
(depends-on "ecukes")) |
Oops, something went wrong.