Bump postcss from 8.5.13 to 8.5.25 #825
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| linter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2.1 | |
| bundler-cache: true | |
| - name: Run linter | |
| run: bundle exec standardrb | |
| python-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install opendataharvest dependencies | |
| run: python3 -m pip install -r lib/opendataharvest/src/requirements.txt | |
| - name: Install Black | |
| run: python3 -m pip install black | |
| - name: Check opendataharvest formatting | |
| run: python3 -m black --check lib/opendataharvest/src/opendataharvest lib/opendataharvest/tests | |
| - name: Run opendataharvest unit tests | |
| run: python3 -m unittest discover -s lib/opendataharvest/tests | |
| aardvark-fixture-linter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2.1 | |
| bundler-cache: true | |
| - name: Install json schema validator | |
| run: gem install json_schemer | |
| - name: Run json_schemer against aarkvark fixtures | |
| run: find test/fixtures/files/** -type f -name "*.json" | xargs json_schemer schema/geoblacklight-schema-aardvark.json | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| BUNDLE_FORCE_RUBY_PLATFORM: true | |
| strategy: | |
| matrix: | |
| ruby_version: ['3.2.1'] | |
| rails_version: [7.0.4.2] | |
| bundler_version: [2.1.1] | |
| faraday_version: ['>= 2'] | |
| name: test ruby ${{ matrix.ruby_version }} / rails ${{ matrix.rails_version }} / faraday ${{ matrix.faraday_version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby_version }} | |
| bundler-cache: true | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: yarn | |
| - name: Create Solr container | |
| run: docker run -d -p 8983:8983 geoblacklight/solr:8.9-v1.0.0 server/scripts/ci-start.sh | |
| - name: Wait for Solr | |
| run: | | |
| for i in {1..60}; do | |
| curl -fsS http://solr:SolrRocks@127.0.0.1:8983/solr/admin/info/system > /dev/null && exit 0 | |
| sleep 2 | |
| done | |
| echo "Solr did not become ready in time" | |
| exit 1 | |
| - name: Install JavaScript dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Load config into solr | |
| run: | | |
| cd solr/conf | |
| zip -1 -r solr_config.zip ./* | |
| curl -H "Content-type:application/octet-stream" --data-binary @solr_config.zip "http://solr:SolrRocks@127.0.0.1:8983/solr/admin/configs?action=UPLOAD&name=blacklight" | |
| curl -H 'Content-type: application/json' http://solr:SolrRocks@127.0.0.1:8983/api/collections/ -d '{create: {name: blacklight-core, config: blacklight, numShards: 1}}' | |
| - name: Run tests | |
| run: bundle exec rake ci | |
| env: | |
| SOLR_VERSION: 8.9.0 | |
| RAILS_VERSION: ${{ matrix.rails_version }} | |
| FARADAY_VERSION: ${{ matrix.faraday_version }} | |
| ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test' | |
| USE_EXISTING_SOLR: 1 | |
| SOLR_URL: http://solr:SolrRocks@127.0.0.1:8983/solr/blacklight-core | |
| - name: Upload coverage artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: coverage | |
| path: coverage/ |