diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 4282322a..00000000 --- a/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -# Set the default behavior, in case people don't have core.autocrlf set. -* text eol=lf diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 253bcf99..15d7bf83 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -5,7 +5,7 @@ name: linux on: [push, pull_request] jobs: - TestSomething: + rubocop: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -13,7 +13,7 @@ jobs: with: ruby-version: 2.6 - # Install and run Arduino CI tests for TestSomething + # Install and run Arduino CI tests for rubocop - name: Build and Execute run: | g++ -v @@ -21,11 +21,25 @@ jobs: bundle exec rubocop --version bundle exec rubocop -D . bundle exec rspec --backtrace + + TestSomething: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for TestSomething + - name: Build and Execute + run: | + g++ -v + bundle install cd SampleProjects/TestSomething bundle install bundle exec arduino_ci.rb - Network: + NetworkLib: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -33,7 +47,7 @@ jobs: with: ruby-version: 2.6 - # Install and run Arduino CI tests for Network + # Install and run Arduino CI tests for NetworkLib - name: Build and Execute run: | g++ -v diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index cd12c5b3..5eb4410a 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -5,7 +5,7 @@ name: windows on: [push, pull_request] jobs: - TestSomething: + rubocop: runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -13,7 +13,7 @@ jobs: with: ruby-version: 2.6 - # Install and run Arduino CI tests for TestSomething + # Install and run Arduino CI tests for rubocop - name: Build and Execute run: | g++ -v @@ -21,11 +21,25 @@ jobs: bundle exec rubocop --version bundle exec rubocop -D . bundle exec rspec --backtrace + + TestSomething: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for TestSomething + - name: Build and Execute + run: | + g++ -v + bundle install cd SampleProjects/TestSomething bundle install bundle exec arduino_ci.rb - Network: + NetworkLib: runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -39,6 +53,6 @@ jobs: g++ -v bundle install cd SampleProjects/NetworkLib - ./scripts/install.sh + bash -x ./scripts/install.sh bundle install bundle exec arduino_ci.rb diff --git a/SampleProjects/NetworkLib/scripts/install.sh b/SampleProjects/NetworkLib/scripts/install.sh index b4e2dd40..54b8d4e0 100755 --- a/SampleProjects/NetworkLib/scripts/install.sh +++ b/SampleProjects/NetworkLib/scripts/install.sh @@ -4,5 +4,5 @@ # then get the custom one we want to use for testing cd $(bundle exec arduino_library_location.rb) if [ ! -d ./Ethernet ] ; then - git clone https://github.com/Arduino-CI/Ethernet.git + git clone --depth 1 https://github.com/Arduino-CI/Ethernet.git fi