Remove Twitter badge from README.md. #93
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: Run 2.x tests | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
- name: Create docker-compose.yml | |
run: curl https://raw.githubusercontent.com/farmOS/farmOS/2.x/docker/docker-compose.development.yml -o docker-compose.yml | |
- name: Start containers | |
run: docker-compose up -d && sleep 5 | |
- name: Install farmOS | |
run: docker-compose exec -u www-data -T www drush site-install -y --db-url=pgsql://farm:farm@db/farm --account-pass=admin | |
- name: Install the farm_fieldkit module | |
run: docker-compose exec -u www-data -T www drush en -y farm_fieldkit && sleep 30 | |
- name: Run npm install | |
run: npm install | |
- name: Run tests | |
run: node node_modules/mocha/bin/mocha --recursive | |