Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Mar 14, 2023
1 parent 858124b commit 44e2642
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 80 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

56 changes: 7 additions & 49 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Main workflow
name: Test Plugin

on:
push:
pull_request:
push:
schedule:
- cron: 0 0 * * 5
- cron: 0 1 * * MON

jobs:
plugin_test:
test-plugin:
name: Test Plugin

strategy:
fail-fast: false
matrix:
Expand All @@ -18,50 +20,6 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v1
- uses: asdf-vm/actions/plugin-test@v2
with:
command: ccache --version
env:
GITHUB_API_TOKEN: ${{ github.token }}

test:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install asdf
run: git clone https://github.com/asdf-vm/asdf.git $HOME/asdf

- name: Test plugin
run: |
. $HOME/asdf/asdf.sh
asdf plugin-add ccache $GITHUB_WORKSPACE
bats test
env:
GITHUB_API_TOKEN: ${{ github.token }}

lint:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run ShellCheck
run: shellcheck bin/*

format:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install shfmt
run: brew install shfmt

- name: Run shfmt
run: shfmt -d -i 2 -ci .
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SRCFILES = $(shell git ls-files "bin/**")
SHFMT_BASE_FLAGS = -s -i 2 -ci

format:
shfmt -w $(SHFMT_BASE_FLAGS) $(SRCFILES)
.PHONY: format

format-check:
shfmt -d $(SHFMT_BASE_FLAGS) $(SRCFILES)
.PHONY: format-check

lint:
shellcheck $(SRCFILES)
.PHONY: lint
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

# Build history

[![Build history](https://buildstats.info/github/chart/asdf-community/asdf-ccache?branch=master)](https://github.com/asdf-community/asdf-ccache/actions)

## Prerequirements

- Make sure you have the required dependencies installed:
Expand Down
2 changes: 1 addition & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ install_ccache() {
cd "$distination"

echo "∗ Configuring..."
if [[ "$version" =~ ^[0-3]\. ]]; then
if [[ $version =~ ^[0-3]\. ]]; then
./configure --prefix="$install_path" >/dev/null || fail "Could not configure"
else
mkdir build
Expand Down
4 changes: 4 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", "schedule:daily"]
}
22 changes: 0 additions & 22 deletions test/install.bats

This file was deleted.

0 comments on commit 44e2642

Please sign in to comment.