ci: Update #30
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: CI | |
on: | |
- push | |
env: | |
CC_TEST_REPORTER_ID: 7729fca8695dd1ce5c6117fcd57680ee5a00726647ae7d4fe52c029de211449f | |
COVERAGE_REPORT: true | |
BUNDLE_GEMS__RAILSLTS__COM: ${{ secrets.BUNDLE_GEMS__RAILSLTS__COM }} | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
container: ubuntu:precise | |
defaults: | |
run: | |
# The default shell is "sh" (as noted in https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container#overview) | |
# but we need to run the "source" command after installing NVM so change it "bash" instead | |
shell: bash | |
steps: | |
# FIXME: v2-v4 Checkout Actions won't work on Ubuntu Precise (see https://github.com/actions/checkout/issues/1487) | |
- uses: actions/checkout@v1 | |
- run: |- | |
sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list | |
sed -i 's/security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list | |
apt-get update | |
apt-get install -y curl libmysqlclient-dev file | |
# - run: |- | |
# node --version | |
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | |
# source "$HOME/.nvm/nvm.sh" | |
# nvm install 11.14.0 | |
# nvm use 11.14.0 | |
# node --version | |
# - uses: actions/[email protected] | |
# with: | |
# node-version: 11.14.0 | |
- run: |- | |
file /__e/node20/bin/node | |
echo $GITHUB_ENV | |
cat $GITHUB_ENV | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- run: cp config/database.travis.yml config/database.yml | |
- run: cp config/app_environment_variables.sample.rb config/app_environment_variables.rb |