From 32afc355b31507d245a8ab110369d2621f208020 Mon Sep 17 00:00:00 2001 From: Getrichordietryng <86663918+Getrichordietryng@users.noreply.github.com> Date: Thu, 9 Jun 2022 20:16:47 -0400 Subject: [PATCH 1/2] Create stale.yml --- .github/workflows/stale.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..c45856b --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '24 20 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'Stale issue message' + stale-pr-message: 'Stale pull request message' + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity' From 9a0d181cf18e8a4ccbbc17f4c7e50458f75f956a Mon Sep 17 00:00:00 2001 From: Getrichordietryng <86663918+Getrichordietryng@users.noreply.github.com> Date: Thu, 9 Jun 2022 20:30:05 -0400 Subject: [PATCH 2/2] Add .circleci/config.yml --- .circleci/config.yml | 50 ++++++++++++++++++-------------------------- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5ae03bb..6554e1f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,36 +1,26 @@ -version: 2 +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: - build: + say-hello: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: - - image: circleci/node:10.13.0 + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "~/project/merkle/package.json" }} - - v1-dependencies- - - run: cd ~/project/merkle && yarn - - save_cache: - paths: - - merkle/node_modules - key: v1-dependencies-{{ checksum "~/project/merkle/package.json" }} - test: - docker: - - image: circleci/node:10.13.0 - - image: trufflesuite/ganache-cli:v6.10.1 - command: ganache-cli --mnemonic "album wire record stuff abandon mesh museum piece bean allow refuse below" - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - - v1-dependencies - - run: cd ~/project/merkle && npm run test + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows workflows: - version: 2 - build_test: + say-hello-workflow: jobs: - - build - - test: - requires: - - build + - say-hello