From 42f03f0660c5815d4a5faeb4a1c087f507ff59a0 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 16 Feb 2021 21:53:37 +0100 Subject: [PATCH] Enable simple CI run (#77) * add simple CI run via github actions --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ src/pages/DetailsPage.svelte | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6e9ed35 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: "Continuous Integration" + +on: + push: + pull_request: + +jobs: + build: + + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 + with: + node-version: '10.x' + + - name: Install dependencies + run: yarn install + + - name: Linting + run: yarn lint + + - name: Build + run: yarn build diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte index 40a92f6..585ce3b 100644 --- a/src/pages/DetailsPage.svelte +++ b/src/pages/DetailsPage.svelte @@ -40,7 +40,7 @@ } fetch_from_api('details', api_request_params, function (data) { - window.scrollTo(0, 0) + window.scrollTo(0, 0); if (data.error) { errorResponse = data; current_result = undefined; -- 2.39.5