]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
Enable simple CI run (#77)
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 16 Feb 2021 20:53:37 +0000 (21:53 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Feb 2021 20:53:37 +0000 (21:53 +0100)
* add simple CI run via github actions

.github/workflows/ci.yml [new file with mode: 0644]
src/pages/DetailsPage.svelte

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644 (file)
index 0000000..6e9ed35
--- /dev/null
@@ -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
index 40a92f6cf7f9c20137c847156bbdbe6fef90855e..585ce3be5ec3b37cba744976e8da035204a9db2b 100644 (file)
@@ -40,7 +40,7 @@
       }
 
       fetch_from_api('details', api_request_params, function (data) {
       }
 
       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;
         if (data.error) {
           errorResponse = data;
           current_result = undefined;