mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Switch from Travis CI to GitHub Action build.yml
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, develop ]
|
||||
pull_request:
|
||||
branches: [ main, develop ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x, 12.x, 14.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm install
|
||||
- run: npm run all
|
||||
- run: npm run test
|
||||
@@ -1,9 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "10"
|
||||
- "12"
|
||||
- "14"
|
||||
before_script:
|
||||
- npm run all
|
||||
after_success:
|
||||
- ./scripts/txpush.sh
|
||||
@@ -1,6 +1,6 @@
|
||||
# iD - friendly JavaScript editor for [OpenStreetMap](https://www.openstreetmap.org/)
|
||||
|
||||
[](https://travis-ci.org/openstreetmap/iD)
|
||||
[](https://github.com/openstreetmap/iD/actions?query=workflow%3A%22build%22)
|
||||
|
||||
## Basics
|
||||
|
||||
@@ -97,4 +97,4 @@ iD also bundles portions of the following open source software.
|
||||
|
||||
## Thank you
|
||||
|
||||
Initial development of iD was made possible by a [grant of the Knight Foundation](https://www.mapbox.com/blog/knight-invests-openstreetmap/).
|
||||
Initial development of iD was made possible by a [grant of the Knight Foundation](https://www.mapbox.com/blog/knight-invests-openstreetmap/).
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script runs on TravisCI to push new translation strings to transifex
|
||||
|
||||
echo "TRAVIS=$TRAVIS"
|
||||
echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
|
||||
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH"
|
||||
echo "TRAVIS_NODE_VERSION=$TRAVIS_NODE_VERSION"
|
||||
|
||||
if [[ "$TRAVIS" != "true" ]]; then exit 0; fi
|
||||
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then exit 0; fi
|
||||
if [[ "$TRAVIS_BRANCH" != "develop" ]]; then exit 0; fi
|
||||
if [[ "$TRAVIS_NODE_VERSION" != "10" ]]; then exit 0; fi
|
||||
|
||||
echo "Pushing source strings to Transifex..."
|
||||
pip install virtualenv
|
||||
virtualenv ~/env
|
||||
source ~/env/bin/activate
|
||||
pip install transifex-client
|
||||
sudo echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\n' > ~/.transifexrc
|
||||
tx push -s
|
||||
Reference in New Issue
Block a user