From 492baddb6fcb33bdf94a53c14eafd9371362ac89 Mon Sep 17 00:00:00 2001 From: velomovies Date: Fri, 5 Feb 2021 09:27:19 +0100 Subject: [PATCH 1/3] Change audit folder --- .github/workflows/audit.yaml | 17 +++++++++++++++++ exercise-1/audit.yaml | 6 ------ 2 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/audit.yaml delete mode 100644 exercise-1/audit.yaml diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml new file mode 100644 index 0000000..04ba1a2 --- /dev/null +++ b/.github/workflows/audit.yaml @@ -0,0 +1,17 @@ +name: Code Audit + +on: pull_request + +defaults: + run: + working-directory: exercise-1 + +jobs: + lint: + name: Test all the things + runs-on: ubuntu-latest + steps: + - run: npm run lint + + +# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions diff --git a/exercise-1/audit.yaml b/exercise-1/audit.yaml deleted file mode 100644 index b652e03..0000000 --- a/exercise-1/audit.yaml +++ /dev/null @@ -1,6 +0,0 @@ -name: Code Audit - -on: push - -jobs: -# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions From 2e5e9cf26f5e686f72f9539a55d895705caa3559 Mon Sep 17 00:00:00 2001 From: velomovies Date: Fri, 5 Feb 2021 09:33:28 +0100 Subject: [PATCH 2/3] Test --- .github/workflows/audit.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 04ba1a2..b663de9 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -8,10 +8,16 @@ defaults: jobs: lint: - name: Test all the things + name: test all the things runs-on: ubuntu-latest steps: - - run: npm run lint + - name: checkout repo + uses: actions/checkout@v2 + - name: install dependencies + run: npm ci + + - name: lint code + run: npm run lint # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions From 59c925bb69965a4c17232d7fd5e7d6f8faa370c6 Mon Sep 17 00:00:00 2001 From: velomovies Date: Fri, 5 Feb 2021 09:35:02 +0100 Subject: [PATCH 3/3] Remove debugger --- exercise-1/pages/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/exercise-1/pages/index.js b/exercise-1/pages/index.js index 2eeb933..abb83d6 100644 --- a/exercise-1/pages/index.js +++ b/exercise-1/pages/index.js @@ -1,4 +1,3 @@ export default function funFunFunction() { - debugger; return

Oh hi there

}