File: test-website.yml

package info (click to toggle)
libh3 4.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 48,700 kB
  • sloc: ansic: 20,847; javascript: 632; sh: 46; makefile: 9
file content (40 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: test-website

on:
  push:
    branches: [master, stable-*]
  pull_request:
    branches: [master, stable-*]

jobs:
  tests:
    name: Test Website and FOSSA
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-node@v2.4.1
        with:
          node-version: '16'

      - name: Install FOSSA
        run: |
          curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash

      - name: Test Website Build
        working-directory: website
        env:
          MapboxAccessToken: ${{ secrets.MapboxAccessToken }}
        run: |
          yarn
          yarn build

      - name: Formatting check
        working-directory: website
        run: |
          yarn format
          git diff --exit-code

      - name: Submit FOSSA report
        run: if [ -n "${{ secrets.FOSSA_API_KEY }}" ]; then fossa; fi