Skip to content

Update run.sh

Update run.sh #457

Workflow file for this run

name: Unit Test
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
install:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup
run: sh ./run.sh
- uses: actions/github-script@v7
with:
script: |
const fs = require('fs')
const homedir = require('os').homedir() + "/";
const verify = async (title, pathList) => {
const outputs = [[{data: title, header:true, colspan: '2'}]]
await Promise.all(pathList.map(async path => {
const result = await fs.existsSync(homedir + path)
outputs.push([path, result?"✅":"❌"])
}))
await core.summary.addTable(outputs).write()
}
await verify(
"user folder config files",
[
".gitconfig",
".gitconfig.remote",
".gitmodules",
".tigrc",
".Brewfile",
"gpg-key.conf",
".hammerspoon/init.lua"
]
)
await verify(
".config folder config files",
[
".config/fish/config.fish",
".config/starship.toml",
".config/fish/fish_variables",
".config/fish/functions/g.fish",
".config/karabiner"
]
)
await verify(
".ssh folder",
[
".ssh/config"
]
)
await verify(
"gnupg folder",
[
".gnupg/gpg-agent.conf",
]
)