Update fs2-io to 3.9.1 #1396
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
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You under the Apache License, Version 2.0 | |
# (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
--- | |
name: CI | |
on: | |
push: | |
branches-ignore: [ 'dependabot/**' ] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
single-commit: | |
name: Single Commit Pull Request | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check Single Commit | |
uses: actions/[email protected] | |
with: | |
script: | | |
const commits = await github.rest.pulls.listCommits({ | |
...context.repo, | |
pull_number: context.issue.number, | |
}); | |
core.info("Number of commits in this pull request: " + commits.data.length); | |
if (commits.data.length > 1) { | |
core.setFailed("If approved with two +1's, squash this pull request into one commit"); | |
} | |
code-format: | |
name: TypeScript/Scala/Svelte Formatting | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
shell: bash | |
env: | |
SBT: sbt -J-Xms1024m -J-Xmx5120m -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=1024m ++2.12.15 | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Node 16 | |
uses: actions/[email protected] | |
with: | |
node-version: '16' | |
- name: Setup Java 8 | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: 8 | |
- run: $SBT scalafmtCheck | |
- run: $SBT scalafmtSbtCheck | |
- run: yarn install | |
- run: yarn lint | |
rat-check: | |
name: Rat Check | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
shell: bash | |
env: | |
SBT: sbt -J-Xms1024m -J-Xmx5120m -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=1024m ++2.12.15 | |
steps: | |
- name: Setup Java 8 | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: 8 | |
- name: Check out Repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Run Rat Check | |
run: $SBT ratCheck || (cat target/rat.txt; exit 1) | |
build-test-package: | |
name: 'Build, Test, and Package (OS: ${{ matrix.os }}, Node: ${{ matrix.node }})' | |
strategy: | |
matrix: | |
os: [macos-11, ubuntu-20.04, windows-2019] | |
node: [ '16', '18' ] | |
fail-fast: false # don't immediately fail all other jobs if a single job fails | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
env: | |
SBT: sbt -J-Xms1024m -J-Xmx5120m -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=1024m ++2.12.15 | |
steps: | |
- name: Setup Java 8 | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: 8 | |
- uses: actions/[email protected] | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node}} | |
- run: $SBT compile # used to initialize sbt, if not done sbt universal:packageBin ran by yarn package times out -- windows only | |
if: runner.os == 'Windows' | |
- run: yarn install | |
- run: xvfb-run -a yarn test | |
if: runner.os == 'Linux' | |
- run: yarn test | |
if: runner.os != 'Linux' | |
- name: Check for Errors in macOS | |
run: tail -n 1000 '/Users/runner/Library/Application Support/omega_edit/'* && exit 1 | |
if: failure() && runner.os == 'macOS' | |
- name: Package | |
run: yarn package |