From 98680afd1a41043ad6a95e36c5d9513ec2a37b4f Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 30 Nov 2023 12:37:57 +0200 Subject: [PATCH] add a basic ci runner --- .github/workflows/ci.yaml | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000..96a4ab9e9 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,43 @@ +name: Faucet CI +run-name: 'Faucet CI: ${{ github.head_ref || github.ref_name }}' + +on: + push: + branches: + - master + - aaronmgdr/setup-ci + pull_request: + branches: + - master + +concurrency: + group: faucet-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash --login -eo pipefail {0} + +jobs: + install-dependencies: + name: Install dependencies + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Setup Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'yarn' + # - name: 'Setup yarn' + # shell: bash + # run: | + # npm install --global yarn + # source ~/.bashrc + - name: Install Dependencies + shell: bash + run: yarn + - name: Install Lint + shell: bash + run: yarn lint