From 240a8c8a2687eb86a86cded430ceebfead46a9c5 Mon Sep 17 00:00:00 2001 From: Morgan Wigmanich Date: Fri, 23 Oct 2020 16:32:41 -0400 Subject: [PATCH 1/6] wip --- .github/workflows/lint.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6c7efb9..441ec47 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,12 +1,11 @@ -name: Lint +name: Tests & Linting on: push jobs: - run-linters: - name: Run linters + setup: + name: Javascript Build runs-on: ubuntu-latest - steps: - name: Check out Git repository uses: actions/checkout@v2 @@ -17,9 +16,23 @@ jobs: node-version: 12.18.2 - name: Install Node.js dependencies - run: yarn + run: npm i + + lint: + name: Run linter + needs: setup + steps: + - name: Invoke linters + uses: wearerequired/lint-action@v1 + with: + github_token: ${{ secrets.github_token }} + eslint: true - - name: Run linters + lint2: + name: Run linter2 + needs: setup + steps: + - name: Invoke linters2 uses: wearerequired/lint-action@v1 with: github_token: ${{ secrets.github_token }} From 65ebbdad95e654deeabc268c7fac11e67fd87f4f Mon Sep 17 00:00:00 2001 From: Morgan Wigmanich Date: Fri, 23 Oct 2020 16:36:23 -0400 Subject: [PATCH 2/6] wip --- .github/workflows/lint.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 441ec47..27b7b92 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,22 +18,8 @@ jobs: - name: Install Node.js dependencies run: npm i - lint: - name: Run linter - needs: setup - steps: - name: Invoke linters uses: wearerequired/lint-action@v1 with: github_token: ${{ secrets.github_token }} eslint: true - - lint2: - name: Run linter2 - needs: setup - steps: - - name: Invoke linters2 - uses: wearerequired/lint-action@v1 - with: - github_token: ${{ secrets.github_token }} - eslint: true From c7880a89d6e19f605201c5a8a592c6b09918ab21 Mon Sep 17 00:00:00 2001 From: Morgan Wigmanich Date: Fri, 23 Oct 2020 17:00:48 -0400 Subject: [PATCH 3/6] wip --- .github/workflows/lint.yml | 22 ++++++++++++++-------- package.json | 3 +++ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 27b7b92..9f386fc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,7 +4,6 @@ on: push jobs: setup: - name: Javascript Build runs-on: ubuntu-latest steps: - name: Check out Git repository @@ -13,13 +12,20 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v1 with: - node-version: 12.18.2 + node-version: 10.16.0 - name: Install Node.js dependencies - run: npm i + run: yarn - - name: Invoke linters - uses: wearerequired/lint-action@v1 - with: - github_token: ${{ secrets.github_token }} - eslint: true + - name: some bullshit + - run: npm run step1 + build: + needs: setup + runs-on: ubuntu-latest + steps: + - run: npm run step2 + test: + needs: build + runs-on: ubuntu-latest + steps: + - run: npm run step3 diff --git a/package.json b/package.json index 88dcb2b..9beb567 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,9 @@ "lib" ], "scripts": { + "step1": "echo 'step one'", + "step2": "echo 'step two A'", + "step3": "echo 'step two B'", "docs": "node ./generate-readme.js", "example": "npm-run-all example:*", "example:cli": "rm -rf ./example/iconr_output && node ./bin/iconr ./example/svg ./example/iconr_output --analytics --debug --pretty --verbose --filename=\"icons.css\" --classname=\"icon-\"", From 48ace149b6792dbad0ae421b2720afaf471498d2 Mon Sep 17 00:00:00 2001 From: Morgan Wigmanich Date: Fri, 23 Oct 2020 17:03:01 -0400 Subject: [PATCH 4/6] wip --- .github/workflows/lint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9f386fc..3f11d74 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,8 @@ jobs: run: yarn - name: some bullshit - - run: npm run step1 + run: npm run step1 + build: needs: setup runs-on: ubuntu-latest From c06633b1da30bc2a1476fb256d4644369c750992 Mon Sep 17 00:00:00 2001 From: Morgan Wigmanich Date: Fri, 23 Oct 2020 17:04:19 -0400 Subject: [PATCH 5/6] wip --- .github/workflows/lint.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3f11d74..b631a94 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,11 +22,10 @@ jobs: build: needs: setup - runs-on: ubuntu-latest steps: - run: npm run step2 + test: needs: build - runs-on: ubuntu-latest steps: - run: npm run step3 From ef5cfb5f39e9c92bb1096afcfbd9e2560035d3e5 Mon Sep 17 00:00:00 2001 From: Morgan Wigmanich Date: Fri, 23 Oct 2020 17:12:57 -0400 Subject: [PATCH 6/6] wip --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b631a94..48c2507 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,10 +22,12 @@ jobs: build: needs: setup + runs-on: ubuntu-latest steps: - run: npm run step2 test: needs: build + runs-on: ubuntu-latest steps: - run: npm run step3