.github/workflows/ci.yml in dry-monads-sorbet-1.1.6 vs .github/workflows/ci.yml in dry-monads-sorbet-1.1.7

- old
+ new

@@ -13,39 +13,31 @@ uses: actions/checkout@v2 - name: Extract branch name shell: bash run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" id: extract_branch - - name: Install Linux dependencies - run: sudo apt-get update -qq && sudo apt-get install -y libsqlite3-dev - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.6.6 - name: Cache gems uses: actions/cache@v2 with: path: vendor/bundle - key: "${{ runner.OS }}-gem-cache-${{ hashFiles('**/dry-monads-sorbet.gemspec') + key: "${{ runner.OS }}-gem-cache-${{ hashFiles('**/*.gemspec') }}" restore-keys: "${{ runner.OS }}-gem-cache-\n" - - name: Install bundler - run: (bundler -v | grep "2.1.4") || gem install bundler:2.1.4 - - name: Remove metrics from bundled gems - run: bundle config set without 'metrics' - - name: Install gems - run: bundle install --jobs $(nproc) --retry 3 --path vendor/bundle - - name: Create cache directory - run: mkdir -p tmp/cache - - name: Typecheck with Sorbet - run: bundle exec srb tc . --ignore=/vendor - - name: Run RSpec test suite - run: bundle exec rspec spec + - uses: "cachix/install-nix-action@8d6d5e949675fbadb765c6b1a975047fa5f09b27" + with: + extra_nix_config: | + post-build-hook = /etc/nix/upload-to-cache.sh + substituters = https://cache.nixos.org/ + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + nix_path: nixpkgs=channel:nixos-21.05 + - name: Run CI through nix-shell env: - METRICS: '1' + GEMFURY_DEPLOY_TOKEN: ${{ secrets.GEMFURY_DEPLOY_TOKEN }} + run: nix-shell --run "chmod 755 ./run_ci.sh && ./run_ci.sh" - name: Post to Slack if build fails - if: failure() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable') - uses: pullreminders/slack-action@master + if: failure() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' + || github.ref == 'refs/heads/stable') + uses: pullreminders/slack-action@a5a262c896a1cc80dcbae59ba95513e2dfb21439 env: SLACK_BOT_TOKEN: "${{ secrets.SLACK_BOT_TOKEN }}" with: args: '{\"channel\":\"C33574SJJ\",\"text\":\"* ${{ github.repository }} BUILD FAILURE*\", \"attachments\": [{ \"fallback\": \"Failure summary\", \"color\":