nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

main.yml (1394B)


      1 name: check
      2 
      3 on:
      4   push:
      5     branches: [master]
      6   pull_request:
      7   schedule:
      8       - cron: '15 3 * * *'
      9 
     10 jobs:
     11   static:
     12     runs-on: ubuntu-latest
     13     steps:
     14       - uses: actions/checkout@v2
     15       - uses: actions/setup-node@v2
     16         with:
     17           version: '16'
     18       - run: cp src/secrets.js.template src/secrets.js
     19       - run: yarnpkg
     20 
     21       - run: npm run lint:code
     22       - run: npm run lint:style
     23       - run: npm run build
     24 
     25   test:
     26     runs-on: ubuntu-latest
     27     strategy:
     28       fail-fast: false
     29       matrix:
     30         include:
     31           - browser: FirefoxHeadless
     32             firefox-version: '52.9.0esr'
     33             needs-xvfb: true
     34           - browser: FirefoxHeadless
     35           - browser: ChromeHeadless
     36     steps:
     37       - uses: actions/checkout@v2
     38       - uses: actions/setup-node@v2
     39         with:
     40           version: '16'
     41       - run: cp src/secrets.js.template src/secrets.js
     42       - run: yarnpkg
     43 
     44       - name: install specific version of Firefox
     45         uses: browser-actions/setup-firefox@latest
     46         with:
     47           firefox-version: ${{matrix.firefox-version}}
     48         if: matrix.firefox-version
     49       - run: npm run test -- --browsers ${{matrix.browser}}
     50         if: ${{! matrix.needs-xvfb}}
     51       - name: run tests with xvfb
     52         uses: GabrielBB/xvfb-action@v1
     53         with:
     54           run: npm run test -- --browsers ${{matrix.browser}}
     55         if: matrix.needs-xvfb