From 92e8702c021a47c371a20c3b3cfc0b72cf7a3b50 Mon Sep 17 00:00:00 2001 From: Sjoerd Beentjes Date: Fri, 5 Feb 2021 09:15:25 +0100 Subject: [PATCH 1/6] add empty action --- .github/workflows/audit.yaml | 0 package-lock.json | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 .github/workflows/audit.yaml create mode 100644 package-lock.json diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml new file mode 100644 index 0000000..e69de29 diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..89eeeed --- /dev/null +++ b/package-lock.json @@ -0,0 +1,12 @@ +{ + "name": "code-class-ci", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "version": "1.0.0", + "license": "ISC" + } + } +} From 5f83ad235e3de7d36b4baf3cf213fdcf3395eaf5 Mon Sep 17 00:00:00 2001 From: Sjoerd Beentjes Date: Fri, 5 Feb 2021 09:20:08 +0100 Subject: [PATCH 2/6] configure audit action --- .github/workflows/audit.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index e69de29..4348b22 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -0,0 +1,15 @@ +name: Code Audit + +on: push + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: npm ci + run: npm ci + - name: lint + run: | + npm run lint \ No newline at end of file From 1b45b5d5934fd798d5f297a5bf50dc6aead3a4a9 Mon Sep 17 00:00:00 2001 From: Sjoerd Beentjes Date: Fri, 5 Feb 2021 09:21:42 +0100 Subject: [PATCH 3/6] fix syntax error --- .github/workflows/audit.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 4348b22..90f4ca0 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -11,5 +11,5 @@ jobs: - name: npm ci run: npm ci - name: lint - run: | + run: npm run lint \ No newline at end of file From ec0333729a457be39263a014c963bf84c0a6dd9c Mon Sep 17 00:00:00 2001 From: Sjoerd Beentjes Date: Fri, 5 Feb 2021 09:23:20 +0100 Subject: [PATCH 4/6] use correct directory --- .github/workflows/audit.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 90f4ca0..f95ddb8 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -9,7 +9,9 @@ jobs: steps: - uses: actions/checkout@master - name: npm ci - run: npm ci + run: | + cd exercise-1 + npm ci - name: lint run: npm run lint \ No newline at end of file From 16af15fbdb00737b511dac48635cb3eeb321b0cd Mon Sep 17 00:00:00 2001 From: Sjoerd Beentjes Date: Fri, 5 Feb 2021 09:25:26 +0100 Subject: [PATCH 5/6] use working directory instead of cd --- .github/workflows/audit.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index f95ddb8..6d246a6 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -6,12 +6,10 @@ jobs: lint: name: lint runs-on: ubuntu-latest + working-directory: ./exercise-1 steps: - uses: actions/checkout@master - name: npm ci - run: | - cd exercise-1 - npm ci + run: npm ci - name: lint - run: - npm run lint \ No newline at end of file + run: npm run lint \ No newline at end of file From a6ca8faec976c8f5de2d6bc813c6dbd574ffa1a5 Mon Sep 17 00:00:00 2001 From: Sjoerd Beentjes Date: Fri, 5 Feb 2021 09:26:41 +0100 Subject: [PATCH 6/6] fix working-directory --- .github/workflows/audit.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 6d246a6..45a7d08 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -6,10 +6,11 @@ jobs: lint: name: lint runs-on: ubuntu-latest - working-directory: ./exercise-1 steps: - uses: actions/checkout@master - name: npm ci run: npm ci + working-directory: ./exercise-1 - name: lint - run: npm run lint \ No newline at end of file + run: npm run lint + working-directory: ./exercise-1 \ No newline at end of file