From d12bfa6cb07b61e3b6812170faa58b557a3f028c Mon Sep 17 00:00:00 2001 From: Nicholas Houle <181gaming@gmail.com> Date: Wed, 11 Oct 2023 20:53:37 -0700 Subject: [PATCH] Add GitHub workflow --- .github/workflows/macos.yml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/stale.yml | 6 +++--- .github/workflows/ubuntu.yml | 29 +++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/macos.yml create mode 100644 .github/workflows/ubuntu.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..5803d46 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,33 @@ +name: CI - macOS + +# Controls when the workflow will run +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-12] + + steps: + - name: Check out repo + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + brew analytics on + brew update + brew install -sq coreutils + + - name: Run (dotfiles - test) + shell: bash + run: | + pwd && ls -la \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index d339229..e5de201 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,7 +7,7 @@ name: Mark stale issues and pull requests on: schedule: - - cron: '44 12 * * *' + - cron: '19 8 * * *' jobs: stale: @@ -18,9 +18,9 @@ jobs: pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v8 with: - repo-token: ${{ secrets.REPO_STALE_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Stale issue message' stale-pr-message: 'Stale pull request message' stale-issue-label: 'no-issue-activity' diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..3efded1 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,29 @@ +name: CI - Ubuntu + +# Controls when the workflow will run +on: + push: + branches: [main] + pull_request: + branches: [main] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + name: Building on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-22.04] + + steps: + - name: Check out repo + uses: actions/checkout@v4 + + - name: Run (dotfiles - test) + shell: bash + run: | + pwd && ls -la +