Fix Copyright #13262
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Continuous integration | |
on: | |
push: | |
jobs: | |
not-failed-backport: | |
runs-on: ubuntu-20.04 | |
name: Test that's not a failed backport | |
timeout-minutes: 5 | |
steps: | |
- run: 'false' | |
if: "github.event.head_commit.message == '[skip ci] Add instructions to finish the backport.'" | |
main: | |
runs-on: ubuntu-20.04 | |
name: Continuous integration | |
timeout-minutes: 30 | |
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')" | |
env: | |
MAIN_BRANCH: 2.6 | |
CI: true | |
PATH: /bin:/usr/bin:/usr/local/bin:/home/runner/.local/bin | |
NODE_OPTIONS: --max-old-space-size=4096 | |
steps: | |
- run: '! ls BACKPORT_TODO' | |
- run: /opt/google/chrome/chrome --version | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: camptocamp/initialise-gopass-summon-action@v2 | |
with: | |
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}} | |
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}} | |
patterns: npm transifex | |
if: github.repository == 'camptocamp/ngeo' | |
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} | |
- run: python3 -m pip install --user --requirement=ci/requirements.txt | |
- name: Checks | |
run: c2cciutils-checks | |
- run: | | |
sudo rm /etc/apt/sources.list.d/*.list | |
sudo apt update | |
sudo apt install g++-10 libgbm1 graphicsmagick fonts-liberation2 | |
- run: buildtools/set-version | |
- run: make .build/node_modules.timestamp | |
# Lint | |
- run: npx tsc --version | |
- run: npm run typecheck | |
- run: make lint | |
- run: make test | |
- run: make check-examples-checker | |
# Webpack build of ngeo/gmf examples and gmf apps | |
- run: NODE_ENV=production make examples-hosted | |
- run: make check-examples | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Examples hosted | |
path: .build/examples-hosted | |
if-no-files-found: ignore | |
retention-days: 5 | |
if: failure() | |
# Generate API doc | |
- run: npm run doc | |
- run: make jsdoc | |
- run: npm run build-api | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Npm logs | |
path: /home/runner/.npm/_logs | |
if-no-files-found: ignore | |
retention-days: 5 | |
if: failure() | |
- run: buildtools/publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: github.repository == 'camptocamp/ngeo' | |
- run: buildtools/npm-publish | |
if: github.repository == 'camptocamp/ngeo' | |
- name: Notify c2cgeoportal | |
run: > | |
curl --request POST --header "Content-Type: application/json" | |
--header 'Accept: application/vnd.github.v3+json' | |
--header "Authorization: token ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}" | |
https://api.github.com/repos/camptocamp/c2cgeoportal/dispatches | |
--data '{"event_type": "ngeo_${{ env.MAIN_BRANCH }}_updated"}' | |
if: > | |
github.ref == format('refs/heads/{0}', env.MAIN_BRANCH) | |
&& github.repository == 'camptocamp/ngeo' |